Skip to content

Commit

Permalink
add scribe to increase cpu and network usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Apr 16, 2023
1 parent 0498b96 commit bd555fb
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/scribe.yml
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Server used for monitoring Aosus infrastructure

## Services
- Uptime-kuma
- Caddy
- Caddy
- scribe
19 changes: 16 additions & 3 deletions caddy/Caddyfile
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
}
16 changes: 16 additions & 0 deletions scribe/docker-compose.yml
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:

0 comments on commit bd555fb

Please sign in to comment.