Replace gitlab with forgejo setup
This commit is contained in:
parent
41fa6b52ef
commit
d2bfe3e018
5 changed files with 12 additions and 12 deletions
|
|
@ -1,29 +0,0 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
server {
|
||||
listen {{ https_port }} ssl;
|
||||
server_name {{ gitlab_domain }};
|
||||
|
||||
include snippets/certificates.conf;
|
||||
include snippets/ssl-params.conf;
|
||||
|
||||
access_log /var/log/nginx/gitlab.log;
|
||||
error_log /var/log/nginx/gitlab.log;
|
||||
|
||||
location / {
|
||||
gzip off;
|
||||
|
||||
proxy_read_timeout 90;
|
||||
proxy_connect_timeout 90;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Ssl on;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Frame-Options SAMEORIGIN;
|
||||
|
||||
proxy_pass http://{{ gitlab_ip }}:{{ gitlab_port }};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue