44 lines
1 KiB
Text
44 lines
1 KiB
Text
# Generated by ansible for site lexperimental.fr
|
|
# At 172.100.0.2 on 172.100.0.0/24
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name lexperimental.fr www.lexperimental.fr;
|
|
|
|
rewrite ^ https://lexperimental.fr$request_uri permanent;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name lexperimental.fr www.lexperimental.fr;
|
|
|
|
access_log /var/log/nginx/lexperimental-access.log;
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
# Let's Encrypt
|
|
include snippets/letsencrypt.conf;
|
|
|
|
include snippets/ssl-params.conf;
|
|
ssl_certificate /etc/letsencrypt/live/lexperimental.fr/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/lexperimental.fr/privkey.pem;
|
|
|
|
if ($host = www.lexperimental.fr) {
|
|
rewrite ^ https://lexperimental.fr$request_uri permanent;
|
|
}
|
|
|
|
# Run by host
|
|
# root /var/www/lexperimental;
|
|
# include snippets/wordpress.conf;
|
|
|
|
# Run in Docker
|
|
include snippets/header-params_server.conf;
|
|
location / {
|
|
include snippets/header-params_location.conf;
|
|
|
|
proxy_pass http://172.100.0.2:80;
|
|
}
|
|
}
|
|
|
|
|