Add Forgejo SSH port 2222 and open in UFW
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a1b97f3e4b
commit
652737239d
2 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,13 @@
|
|||
proto: tcp
|
||||
comment: "SSH"
|
||||
|
||||
- name: Allow Forgejo SSH
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: "2222"
|
||||
proto: tcp
|
||||
comment: "Forgejo SSH"
|
||||
|
||||
- name: Allow HTTP
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
|
|
|
|||
|
|
@ -108,7 +108,10 @@ services:
|
|||
- FORGEJO__server__DOMAIN={{ domain_git }}
|
||||
- FORGEJO__server__ROOT_URL=https://{{ domain_git }}
|
||||
- FORGEJO__server__SSH_DOMAIN={{ domain_git }}
|
||||
- FORGEJO__server__SSH_PORT=2222
|
||||
- FORGEJO__service__DISABLE_REGISTRATION=true
|
||||
ports:
|
||||
- "2222:22"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.forgejo.rule=Host(`{{ domain_git }}`)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue