This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
loki/proxy/nginx-conf.d/gitlab.wojciechkozlowski.eu.conf

38 lines
983 B
Plaintext
Raw Normal View History

2017-09-17 04:24:15 +02:00
server {
listen 80;
server_name gitlab.wojciechkozlowski.eu;
location ^~ /.well-known {
allow all;
root /var/www/html;
}
location / {
return 301 https://$server_name$request_uri;
}
}
2017-09-16 22:53:23 +02:00
server {
2017-09-17 04:15:10 +02:00
listen 443 ssl;
2017-09-16 23:39:30 +02:00
server_name gitlab.wojciechkozlowski.eu;
2017-09-16 22:53:23 +02:00
2019-12-15 11:58:56 +01:00
ssl_certificate /etc/letsencrypt/live/gitlab.wojciechkozlowski.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/gitlab.wojciechkozlowski.eu/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/gitlab.wojciechkozlowski.eu/chain.pem;
2018-01-25 22:50:29 +01:00
client_max_body_size 10G; # 0=unlimited - set max upload size
2017-09-16 22:53:23 +02:00
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
2018-01-25 01:30:19 +01:00
proxy_pass http://gitlab;
2017-09-16 22:53:23 +02:00
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}