mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:35 +02:00
23 lines
581 B
Plaintext
23 lines
581 B
Plaintext
|
# Redirect all requests to this server to https
|
||
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
server_name _;
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl http2;
|
||
|
listen [::]:443 ssl http2;
|
||
|
server_name login.yourdomain.com;
|
||
|
|
||
|
access_log /var/log/nginx/login.yourdomain.com_access.log;
|
||
|
error_log /var/log/nginx/login.yourdomain.com_error.log;
|
||
|
|
||
|
include conf.d/include/ssl.inc;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://172.17.0.1:8082/;
|
||
|
}
|
||
|
}
|