diff --git a/README.md b/README.md index 9e3821c..3ef18dc 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,9 @@ And then, caddy will generate the certificate for you and renew it automatically | [uptimekuma.bensuperpc.org](https://uptimekuma.bensuperpc.org) | Sub | Uptime Kuma for monitoring | | [qbittorrent.bensuperpc.org](https://qbittorrent.bensuperpc.org) | Sub | Torrent client/server | | [transmission.bensuperpc.org](https://transmission.bensuperpc.org) | Sub | Torrent client/server | -| [git.bensuperpc.org](https://git.bensuperpc.org) | Sub | Gitea for git | +| [gitea.bensuperpc.org](https://gitea.bensuperpc.org) | Sub | Gitea for git | | [forgejo.bensuperpc.org](https://forgejo.bensuperpc.org/) | Sub | Fork of Gitea for git | +| [git.bensuperpc.org](https://git.bensuperpc.org) | Sub | Fork of Gitea for git | | [link.bensuperpc.org](https://link.bensuperpc.org) | Sub | For link shortener | | [jellyfin.bensuperpc.org](https://jellyfin.bensuperpc.org) | Sub | Jellyfin for media server | | [syncthing.bensuperpc.org](https://syncthing.bensuperpc.org) | Sub | SyncThing for file synchronization | diff --git a/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile b/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile index 24558da..6e64154 100644 --- a/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile +++ b/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile @@ -87,11 +87,11 @@ transmission.{$MAIN_DOMAIN} { } gitea.{$MAIN_DOMAIN} { - redir https://git.{$MAIN_DOMAIN} permanent + reverse_proxy gitea:3000 } git.{$MAIN_DOMAIN} { - reverse_proxy gitea:3000 + reverse_proxy forgejo:3000 } forgejo.{$MAIN_DOMAIN} { diff --git a/infrastructure/services/forgejo/docker-compose.forgejo.yml b/infrastructure/services/forgejo/docker-compose.forgejo.yml index 50cbd32..daf658b 100644 --- a/infrastructure/services/forgejo/docker-compose.forgejo.yml +++ b/infrastructure/services/forgejo/docker-compose.forgejo.yml @@ -10,7 +10,7 @@ services: - database_forgejo - caddy ports: - - "5555:5555" + - "22:22" env_file: - ./env/forgejo.env volumes: @@ -70,10 +70,8 @@ services: docker-in-docker: condition: service_started container_name: 'forgejo_runner' - environment: - DOCKER_HOST: tcp://docker:2376 - DOCKER_CERT_PATH: /certs/client - DOCKER_TLS_VERIFY: "1" + env_file: + - ./env/forgejo_runner.env # user: 1001:1001 volumes: # - ./config/forgejo_runner/config.yaml:/config.yaml:ro @@ -81,8 +79,8 @@ services: - forgejo_certs:/certs restart: 'unless-stopped' - command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' -# command: '/bin/sh -c "sleep 5; forgejo-runner -c /data/config.yml daemon"' +# command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' + command: '/bin/sh -c "sleep 5; forgejo-runner -c /data/config.yml daemon"' volumes: forgejo_data: diff --git a/infrastructure/services/forgejo/env/forgejo.env b/infrastructure/services/forgejo/env/forgejo.env index 464f27e..e6be73a 100644 --- a/infrastructure/services/forgejo/env/forgejo.env +++ b/infrastructure/services/forgejo/env/forgejo.env @@ -10,8 +10,8 @@ FORGEJO__APP_SLOGAN=Personal Code, Mirrors, and More FORGEJO__server__DOMAIN=forgejo.bensuperpc.org FORGEJO__server__SSH_DOMAIN=forgejo.bensuperpc.org FORGEJO__server__HTTP_PORT=3000 -FORGEJO__server__SSH_LISTEN_PORT=5555 -FORGEJO__server__SSH_PORT=5555 +FORGEJO__server__SSH_LISTEN_PORT=22 +FORGEJO__server__SSH_PORT=22 FORGEJO__server__ROOT_URL=https://forgejo.bensuperpc.org FORGEJO__security__SECRET_KEY=ykcZt23an1E4lFHWvrCKdAyt16WAiK9c #FORGEJO__security__INTERNAL_TOKEN= diff --git a/infrastructure/services/forgejo/env/forgejo_runner.env b/infrastructure/services/forgejo/env/forgejo_runner.env index e69de29..3186930 100644 --- a/infrastructure/services/forgejo/env/forgejo_runner.env +++ b/infrastructure/services/forgejo/env/forgejo_runner.env @@ -0,0 +1,3 @@ +DOCKER_HOST=tcp://docker:2376 +DOCKER_CERT_PATH=/certs/client +DOCKER_TLS_VERIFY=1 \ No newline at end of file diff --git a/infrastructure/services/gitea/docker-compose.gitea.yml b/infrastructure/services/gitea/docker-compose.gitea.yml index 1e17824..74fa791 100644 --- a/infrastructure/services/gitea/docker-compose.gitea.yml +++ b/infrastructure/services/gitea/docker-compose.gitea.yml @@ -10,7 +10,7 @@ services: - database_gitea - caddy ports: - - "22:22" + - "5555:5555" env_file: - ./env/gitea.env volumes: diff --git a/infrastructure/services/gitea/env/gitea.env b/infrastructure/services/gitea/env/gitea.env index 02adb62..c7e1388 100644 --- a/infrastructure/services/gitea/env/gitea.env +++ b/infrastructure/services/gitea/env/gitea.env @@ -10,6 +10,6 @@ GITEA__security__SECRET_KEY=ykcZt23an1E4lFHWvrCKdAyt16WAiK9c GITEA__server__DOMAIN=git.bensuperpc.org GITEA__server__SSH_DOMAIN=git.bensuperpc.org GITEA__server__HTTP_PORT=3000 -GITEA__server__SSH_LISTEN_PORT=22 -GITEA__server__SSH_PORT=22 +GITEA__server__SSH_LISTEN_PORT=5555 +GITEA__server__SSH_PORT=5555 GITEA__server__ROOT_URL=https://git.bensuperpc.org \ No newline at end of file