mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-05 17:15:21 +00:00
37 lines
767 B
Plaintext
37 lines
767 B
Plaintext
|
|
server {
|
|
if ($host = $NGINX_SERVER_NAME) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server_name $NGINX_SERVER_NAME;
|
|
listen 80;
|
|
listen [::]:80;
|
|
return 404;
|
|
}
|
|
server {
|
|
server_name $NGINX_SERVER_NAME;
|
|
|
|
listen [::]:443 ssl ipv6only=on;
|
|
listen 443 ssl;
|
|
ssl_certificate $NGINX_SSL_CERTIFICATE;
|
|
ssl_certificate_key $NGINX_SSL_CERTIFICATE_KEY;
|
|
include $NGINX_SSL_INCLUDE;
|
|
ssl_dhparam $NGINX_SSL_DHPARAM;
|
|
|
|
include /etc/nginx/common/protect.conf;
|
|
include /etc/nginx/common/protect_add_header.conf;
|
|
|
|
root $NGINX_UPDATE_PAGE_ROOT;
|
|
index updating.html;
|
|
|
|
#location / {
|
|
# alias $NGINX_UPDATE_PAGE_ROOT;
|
|
# index updating.html;
|
|
#}
|
|
|
|
#access_log /var/log/nginx/access.log main;
|
|
|
|
}
|
|
|