diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/disabled/docker-compose.yaml | 32 | ||||
-rw-r--r-- | templates/disabled/nginx/code.conf.template (renamed from templates/nginx/conf.d/git.conf.template) | 6 | ||||
-rw-r--r-- | templates/disabled/nginx/timeline.conf.template | 21 | ||||
-rw-r--r-- | templates/docker-compose.yaml.template | 14 | ||||
-rw-r--r-- | templates/forgejo.app.ini.init.template | 42 |
5 files changed, 56 insertions, 59 deletions
diff --git a/templates/disabled/docker-compose.yaml b/templates/disabled/docker-compose.yaml new file mode 100644 index 0000000..565ca49 --- /dev/null +++ b/templates/disabled/docker-compose.yaml @@ -0,0 +1,32 @@ +services: + debian-dev: + pull_policy: build + build: + context: ./docker/debian-dev + dockerfile: Dockerfile + pull: true + args: + - USER=crupest + tags: + - "crupest/debian-dev:latest" + container_name: debian-dev + init: true + command: [ "/bootstrap/start/code-server.bash" ] + volumes: + - ./data/debian-dev:/data + - debian-dev-home:/home/crupest + restart: on-failure:3 + + timeline: + image: crupest/timeline:latest + pull_policy: always + container_name: timeline + restart: on-failure:3 + environment: + - ASPNETCORE_FORWARDEDHEADERS_ENABLED=true + - TIMELINE_DisableAutoBackup=true + volumes: + - ./data/timeline:/root/timeline + +volumes: + debian-dev-home: diff --git a/templates/nginx/conf.d/git.conf.template b/templates/disabled/nginx/code.conf.template index 3a2948c..205c7ba 100644 --- a/templates/nginx/conf.d/git.conf.template +++ b/templates/disabled/nginx/code.conf.template @@ -1,10 +1,10 @@ server { - server_name git.${CRUPEST_DOMAIN}; + server_name code.${CRUPEST_DOMAIN}; include common/https-listen; location / { include common/proxy-common; - proxy_pass http://forgejo:3000/; + proxy_pass http://debian-dev:8080/; } client_max_body_size 5G; @@ -12,7 +12,7 @@ server { server { - server_name git.${CRUPEST_DOMAIN}; + server_name code.${CRUPEST_DOMAIN}; include common/http-listen; include common/https-redirect; diff --git a/templates/disabled/nginx/timeline.conf.template b/templates/disabled/nginx/timeline.conf.template new file mode 100644 index 0000000..551e0ae --- /dev/null +++ b/templates/disabled/nginx/timeline.conf.template @@ -0,0 +1,21 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name timeline.${CRUPEST_DOMAIN}; + + location / { + include common/reverse-proxy; + proxy_pass http://timeline:5000/; + } + + client_max_body_size 5G; +} + +server { + listen 80; + listen [::]:80; + server_name timeline.${CRUPEST_DOMAIN}; + + include common/https-redirect; + include common/acme-challenge; +} diff --git a/templates/docker-compose.yaml.template b/templates/docker-compose.yaml.template index d55c7c2..4a8bb36 100644 --- a/templates/docker-compose.yaml.template +++ b/templates/docker-compose.yaml.template @@ -120,20 +120,6 @@ services: timeout: 3s retries: 0 - forgejo: - image: code.forgejo.org/forgejo/forgejo:10 - pull_policy: always - container_name: forgejo - mem_limit: 800mb - environment: - - USER_UID=1000 - - USER_GID=1000 - volumes: - - ./data/forgejo:/data - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro - restart: on-failure:3 - git-server: pull_policy: build build: diff --git a/templates/forgejo.app.ini.init.template b/templates/forgejo.app.ini.init.template deleted file mode 100644 index 7dc3800..0000000 --- a/templates/forgejo.app.ini.init.template +++ /dev/null @@ -1,42 +0,0 @@ -# Copy this file to ./data/forgejo/gitea/conf/app.ini -# TODO: Copy this to data directory automatically. - -APP_NAME = Forgejo, loved by crupest. -RUN_MODE = prod -WORK_PATH = /data/gitea - -[server] -HTTP_ADDR = 0.0.0.0 -HTTP_PORT = 3000 -ROOT_URL = https://git.${CRUPEST_DOMAIN} -DISABLE_SSH = true -LFS_START_SERVER = true - -[database] -DB_TYPE = sqlite3 - -[security] -INSTALL_LOCK = false -REVERSE_PROXY_LIMIT = 1 -REVERSE_PROXY_TRUSTED_PROXIES = * - -[service] -DISABLE_REGISTRATION = false -ALLOW_ONLY_INTERNAL_REGISTRATION = true - -[mailer] -ENABLED = true -PROTOCOL = smtp -SMTP_ADDR = mail.${CRUPEST_DOMAIN} -SMTP_PORT = 465 -USER = ${CRUPEST_FORGEJO_MAILER_USER} -PASSWD = ${CRUPEST_FORGEJO_MAILER_PASSWD} - -[log] -MODE = console,file - -[cron] -ENABLED = true - -[actions] -ENABLED = false |