netoik-home/nginx/www.samuel-campos.fr.conf

25 lines
664 B
Plaintext

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.samuel-campos.fr;
# Configure secure access.
ssl_certificate /etc/letsencrypt/live/samuel-campos.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/samuel-campos.fr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
# Redirect to homepage.
return 301 https://www.netoik.io$request_uri;
}
server {
listen 80;
listen [::]:80;
server_name www.samuel-campos.fr;
# Redirect to homepage.
return 301 https://www.netoik.io$request_uri;
}