Replace gitlab with forgejo setup

This commit is contained in:
Sonny Bakker 2024-12-09 19:29:42 +01:00
parent 41fa6b52ef
commit d2bfe3e018
5 changed files with 12 additions and 12 deletions

View file

@ -20,7 +20,7 @@ table ip filter {
ip protocol icmp accept
iifname "{{ network_interface }}" tcp dport {{ ssh_port }} accept comment "SSH"
iifname "{{ network_interface }}" tcp dport {{ gitlab_ssh_port }} accept comment "Gitlab SSH"
iifname "{{ network_interface }}" tcp dport {{ forgejo_ssh_port }} accept comment "Forgejo SSH"
iifname "{{ network_interface }}" tcp dport { {{ http_port }}, {{ https_port }} } accept comment "HTTP/HTTPS"
iifname "{{ network_interface }}" tcp dport {{ transmission_port }} accept comment "Transmission"

View file

@ -2,13 +2,13 @@
server {
listen {{ https_port }} ssl;
server_name {{ gitlab_domain }};
server_name {{ forgejo_domain }};
include snippets/certificates.conf;
include snippets/ssl-params.conf;
access_log /var/log/nginx/gitlab.log;
error_log /var/log/nginx/gitlab.log;
access_log /var/log/nginx/forgejo.log;
error_log /var/log/nginx/forgejo.log;
location / {
gzip off;
@ -24,6 +24,6 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://{{ gitlab_ip }}:{{ gitlab_port }};
proxy_pass http://{{ forgejo_ip }}:{{ forgejo_port }};
}
}