2017-05-30 14:45:02 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
2018-10-30 14:50:33 +01:00
|
|
|
server_name %%gitea_web_name;
|
2017-05-30 14:45:02 +02:00
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
|
2015-05-20 16:01:36 +02:00
|
|
|
server {
|
|
|
|
listen 443;
|
|
|
|
ssl on;
|
|
|
|
ssl_certificate %%server_cert;
|
|
|
|
ssl_certificate_key %%server_key;
|
|
|
|
ssl_client_certificate /etc/ssl/certs/ca.crt;
|
|
|
|
access_log /var/log/nginx/revprox.revprox_http.access-ssl.log;
|
2018-10-30 14:50:33 +01:00
|
|
|
server_name %%gitea_web_name;
|
2015-05-20 16:01:36 +02:00
|
|
|
error_page 403 404 502 503 504 /nginx.html;
|
|
|
|
location = /nginx.html{
|
|
|
|
root /usr/share/nginx/www;
|
|
|
|
}
|
|
|
|
location / {
|
2018-10-30 14:50:33 +01:00
|
|
|
proxy_pass https://%%container_ip_forge:%%gitea_http_port;
|
2015-05-20 16:01:36 +02:00
|
|
|
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 Destination $dest;
|
|
|
|
set $dest $http_destination;
|
|
|
|
#2132
|
|
|
|
index 50x.html;
|
|
|
|
root /usr/share/nginx/www/;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|