From 4c5df72057fe02257e243de37930a47425a84722 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Wed, 19 Feb 2025 02:05:39 +0800 Subject: chore(docker): remove crupest-api, forgejo and move dropped. --- templates/disabled/docker-compose.yaml | 32 +++++++++++++++++++ templates/disabled/nginx/code.conf.template | 20 ++++++++++++ templates/disabled/nginx/timeline.conf.template | 21 +++++++++++++ templates/docker-compose.yaml.template | 14 --------- templates/forgejo.app.ini.init.template | 42 ------------------------- templates/nginx/conf.d/git.conf.template | 20 ------------ 6 files changed, 73 insertions(+), 76 deletions(-) create mode 100644 templates/disabled/docker-compose.yaml create mode 100644 templates/disabled/nginx/code.conf.template create mode 100644 templates/disabled/nginx/timeline.conf.template delete mode 100644 templates/forgejo.app.ini.init.template delete mode 100644 templates/nginx/conf.d/git.conf.template (limited to 'templates') 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/disabled/nginx/code.conf.template b/templates/disabled/nginx/code.conf.template new file mode 100644 index 0000000..205c7ba --- /dev/null +++ b/templates/disabled/nginx/code.conf.template @@ -0,0 +1,20 @@ +server { + server_name code.${CRUPEST_DOMAIN}; + include common/https-listen; + + location / { + include common/proxy-common; + proxy_pass http://debian-dev:8080/; + } + + client_max_body_size 5G; +} + + +server { + server_name code.${CRUPEST_DOMAIN}; + include common/http-listen; + + include common/https-redirect; + include common/acme-challenge; +} 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 diff --git a/templates/nginx/conf.d/git.conf.template b/templates/nginx/conf.d/git.conf.template deleted file mode 100644 index 3a2948c..0000000 --- a/templates/nginx/conf.d/git.conf.template +++ /dev/null @@ -1,20 +0,0 @@ -server { - server_name git.${CRUPEST_DOMAIN}; - include common/https-listen; - - location / { - include common/proxy-common; - proxy_pass http://forgejo:3000/; - } - - client_max_body_size 5G; -} - - -server { - server_name git.${CRUPEST_DOMAIN}; - include common/http-listen; - - include common/https-redirect; - include common/acme-challenge; -} -- cgit v1.2.3