change forgejo ssh port

This commit is contained in:
Pim Kunis 2023-01-06 17:35:36 +01:00
parent 5b31f5dddb
commit 4c4f558579
5 changed files with 11 additions and 4 deletions

View file

@ -17,8 +17,6 @@ Seems to be a little annoying with all the docker stuff
### Gitea ### Gitea
- Move to forgejo
- Fix SSH port
- Move over some repos - Move over some repos
- Setup automatic syncing - Setup automatic syncing
- Use own git servers - Use own git servers

View file

@ -16,7 +16,7 @@ services:
- traefik - traefik
volumes: volumes:
- /data/forgejo:/data - /data/forgejo:/data
- /apps/forgejo/conf:/data/forgejo/conf - /apps/forgejo/conf:/data/gitea/conf
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
labels: labels:
@ -24,4 +24,10 @@ services:
- traefik.http.routers.forgejo.rule=Host(`git.pizzapim.nl`) - traefik.http.routers.forgejo.rule=Host(`git.pizzapim.nl`)
- traefik.http.routers.forgejo.tls=true - traefik.http.routers.forgejo.tls=true
- traefik.http.routers.forgejo.tls.certresolver=pizzapim - traefik.http.routers.forgejo.tls.certresolver=pizzapim
- traefik.tcp.routers.forgejo-ssh.service=forgejo
- traefik.http.services.forgejo.loadbalancer.server.port=3000 - traefik.http.services.forgejo.loadbalancer.server.port=3000
- traefik.tcp.routers.forgejo-ssh.rule=HostSNI(`*`)
- traefik.tcp.routers.forgejo-ssh.entrypoints=ssh
- traefik.tcp.routers.forgejo-ssh.service=forgejo-ssh
- traefik.tcp.services.forgejo-ssh.loadbalancer.server.port=22

View file

@ -18,7 +18,7 @@ SSH_DOMAIN = git.pizzapim.nl
HTTP_PORT = 3000 HTTP_PORT = 3000
ROOT_URL = {{ forgejo.root_url }} ROOT_URL = {{ forgejo.root_url }}
DISABLE_SSH = false DISABLE_SSH = false
SSH_PORT = 2222 SSH_PORT = 56287
SSH_LISTEN_PORT = 22 SSH_LISTEN_PORT = 22
LFS_START_SERVER = true LFS_START_SERVER = true
LFS_JWT_SECRET = {{ forgejo.lfs_jwt_secret }} LFS_JWT_SECRET = {{ forgejo.lfs_jwt_secret }}

View file

@ -17,6 +17,7 @@ services:
ports: ports:
- "443:443" - "443:443"
- "80:80" - "80:80"
- "56287:56287"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /apps/traefik/traefik.toml:/etc/traefik/traefik.toml - /apps/traefik/traefik.toml:/etc/traefik/traefik.toml

View file

@ -5,6 +5,8 @@ loglevel = "DEBUG"
address = ":80" address = ":80"
[entryPoints.websecure] [entryPoints.websecure]
address = ":443" address = ":443"
[entryPoints.ssh]
address = ":56287"
[api] [api]