1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/openldap/nginx.conf

24 lines
830 B
Nginx Configuration File
Raw Normal View History

2019-09-27 03:29:09 +02:00
server {
listen 80;
2021-03-11 09:54:47 +02:00
server_name ldap.easypi.duckdns.org;
2019-09-27 03:29:09 +02:00
return 302 https://$host$request_uri;
}
server {
listen 443 ssl;
2021-03-11 09:54:47 +02:00
server_name ldap.easypi.duckdns.org;
ssl_certificate ssl/easypi.duckdns.org/fullchain.pem;
ssl_certificate_key ssl/easypi.duckdns.org/privkey.pem;
2019-09-27 03:29:09 +02:00
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}