Add openvpn setup
This commit is contained in:
parent
f22e5301aa
commit
49ee39baba
26 changed files with 1684 additions and 4 deletions
29
templates/nginx/gitlab.j2
Normal file
29
templates/nginx/gitlab.j2
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
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 https://{{ gitlab_ip }};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue