-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scribe to increase cpu and network usage
- Loading branch information
Showing
4 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: deploy-scribe | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/scribe.yml' | ||
- 'scribe/**' | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: scribe | ||
url: https://scribe.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.scribe_secret_key_base }} | ||
with: | ||
remote_docker_host: ${{ secrets.server_address }} | ||
tailscale_ssh: true # no need for manual private and public keys | ||
compose_file_path: scribe/docker-compose.yml | ||
args: -p scribe up -d --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ Server used for monitoring Aosus infrastructure | |
|
||
## Services | ||
- Uptime-kuma | ||
- Caddy | ||
- Caddy | ||
- scribe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
{ | ||
email {env.EMAIL} | ||
email {env.EMAIL} | ||
} | ||
status.aosus.org { | ||
reverse_proxy uptime-kuma:3001 | ||
} | ||
reverse_proxy uptime-kuma:3001 | ||
} | ||
|
||
scribe.aosus.link { | ||
reverse_proxy scribe:8080 | ||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
networks: | ||
web: | ||
external: true | ||
|
||
services: | ||
scribe: | ||
container_name: scribe | ||
image: oci.fariszr.com/fariszr/scribe:latest@sha256:8e67aa08802dc2faff257a7bd12d1631c050a9f560a7010c2e19cb3ab3a632ed | ||
restart: always | ||
environment: | ||
- APP_DOMAIN=scribe.aosus.link | ||
- LUCKY_ENV=production | ||
- PORT=8080 | ||
- SECRET_KEY_BASE | ||
networks: | ||
web: |