57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
|
|
server {
|
|
listen 80;
|
|
server_name portal.egonetix.de;
|
|
|
|
# Redirect any HTTP request to HTTPS
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
}
|
|
|
|
|
|
server {
|
|
# The IP that you forwarded in your router (nginx proxy)
|
|
listen 10.0.0.29:443 ssl http2;
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
|
|
# SSL config
|
|
ssl on;
|
|
ssl_certificate /etc/letsencrypt/live/portal.egonetix.de/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/portal.egonetix.de/privkey.pem;
|
|
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
|
|
|
# Make site accessible from http://localhost/
|
|
server_name portal.egonetix.de;
|
|
|
|
access_log /var/log/nginx/portal-access_log;
|
|
error_log /var/log/nginx/portal-error_log;
|
|
|
|
# return 301 https://$server_name$request_uri;
|
|
# The internal IP of the VM that hosts your Apache config
|
|
# set $upstream 10.0.0.10;
|
|
|
|
root /var/www/html;
|
|
index index.html;
|
|
|
|
# location /.well-known {
|
|
# alias /var/www/sub.domain.com/.well-known;
|
|
# }
|
|
|
|
# location / {
|
|
|
|
# proxy_pass_header Authorization;
|
|
# proxy_pass http://$upstream;
|
|
# 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_http_version 1.1;
|
|
# proxy_set_header Connection "";
|
|
# proxy_buffering off;
|
|
# client_max_body_size 0;
|
|
# proxy_read_timeout 36000s;
|
|
# proxy_redirect off;
|
|
#}
|
|
}
|
|
|