Skip to content

Commit

Permalink
add breezewiki
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Apr 29, 2023
1 parent bd555fb commit af2ceb5
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/breezewiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: deploy-breezewiki

on:
push:
paths:
- '.github/workflows/breezewiki.yml'
- 'breezewiki/**'
branches: [main]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: breezewiki
url: https://breezewiki.aosus.link
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Tailscale
uses: tailscale/github-action@ce41a99162202a647a4b24c30c558a567b926709
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
hostname: Github-actions
version: ${{ vars.TAILSCALE_VERSION }}

- name: Start Deployment
uses: FarisZR/docker-compose-gitops-action@v1
env:
SECRET_KEY_BASE: ${{ secrets.breezewiki_secret_key_base }}
with:
remote_docker_host: ${{ secrets.server_address }}
tailscale_ssh: true # no need for manual private and public keys
compose_file_path: breezewiki/docker-compose.yml
args: -p breezewiki up -d --remove-orphans
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ Server used for monitoring Aosus infrastructure
## Services
- Uptime-kuma
- Caddy
- breezewiki
- scribe
15 changes: 15 additions & 0 deletions breezewiki/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
networks:
web:
external: true

services:
breezewiki:
container_name: breezewiki
image: oci.fariszr.com/fariszr/breezewiki:latest@sha256:c364dea59ad54eeb84bd6257f52125e8d280be1f179fa789f9aedb679d00a463
restart: always
environment:
- bw_canonical_origin=breezewiki.aosus.link
- bw_feature_search_suggestions=true
- bw_port=8000
networks:
web:
13 changes: 13 additions & 0 deletions caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,16 @@ Disallow: /"
}
encode zstd gzip
}

breezewiki.aosus.link {
reverse_proxy breezewiki:8000
respond /robots.txt 200 {
body "User-agent: *
Disallow: /"
}
header {
X-Robots-Tag "noindex, noarchive, nofollow, nosnippet"
X-XSS-Protection "1; mode=block"
}
encode zstd gzip
}

0 comments on commit af2ceb5

Please sign in to comment.