Skip to content

Commit

Permalink
all: setup tour.awwan.org
Browse files Browse the repository at this point in the history
Now that the _tour is ready we can deploy it to tour.awwan.org.
The website is updated to include link to tour domain.

Implements: https://todo.sr.ht/~shulhan/awwan/4
  • Loading branch information
shuLhan committed Dec 21, 2023
1 parent 7d89f4c commit 0f1a82f
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 40 deletions.
2 changes: 0 additions & 2 deletions .ssh/config

This file was deleted.

Empty file removed .ssh/empty
Empty file.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Feel free to open new feature or report a bug in our

[Project website](https://awwan.org).

[Tour of awwan](https://tour.awwan.org).

[Changelog](https://awwan.org/CHANGELOG.html) --
History of each awwan release.

Expand Down
5 changes: 5 additions & 0 deletions _ops/.ssh/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Host awwan.org
Hostname awwan.internal

Host tour.awwan.org
Hostname tour.awwan.internal
13 changes: 13 additions & 0 deletions _ops/tour.awwan.org/10_setup.aww
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sudo mkdir -p /data/awwan/src
sudo chown -R {{.SSHUser}} /data/awwan

git -C /data/awwan/src clone https://git.sr.ht/~shulhan/awwan . \
|| git -C /data/awwan/src fetch --all --tags --prune

git -C /data/awwan/src submodule update --init

## Currently we use the dev branch for quick fixes.

git -C /data/awwan/src checkout -B dev
git -C /data/awwan/src reset --hard origin/dev
CGO_ENABLED=0 make -C /data/awwan/src build
9 changes: 9 additions & 0 deletions _ops/tour.awwan.org/11_setup_container.aww
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sudo pacman -Sy --noconfirm mkosi

make -C /data/awwan/src build-tour

sudo machinectl --force import-tar /data/awwan/awwan-tour.tar
sudo cp /data/awwan/awwan-tour.nspawn /etc/systemd/nspawn/awwan-tour.nspawn
sudo machinectl start awwan-tour

sudo machinectl -l
2 changes: 2 additions & 0 deletions _wui/doc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ your own server, while you need is a handful knowledge of shell script?

If yes, awwan is the right tools for you.

https://tour.awwan.org/[Take a tour of awwan]

Features,

- Encryption. Awwan can read and copy encrypted files.
Expand Down
2 changes: 2 additions & 0 deletions _wui/doc/template.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
</div>

<div class="topbar-right">
<img class="awwan-logo" src="/favicon.ico"></img>
<a href="https://tour.awwan.org"> Tour </a>
<img class="awwan-logo" src="/favicon.ico"></img>
<a href="https://git.sr.ht/~shulhan/awwan" target="_blank"> Repository </a>
<img class="awwan-logo" src="/favicon.ico"></img>
Expand Down
44 changes: 22 additions & 22 deletions internal/cmd/www-awwan/memfs.go

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions internal/memfs_wui.go

Large diffs are not rendered by default.

0 comments on commit 0f1a82f

Please sign in to comment.