2016-06-18 13:23:12 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name {{ racktables_domain }};
|
|
|
|
|
2019-02-13 15:57:46 +01:00
|
|
|
location / {
|
|
|
|
return 301 https://{{ racktables_domain }}$request_uri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
server_name {{ racktables_domain }};
|
|
|
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/{{ racktables_domain }}.key;
|
|
|
|
ssl_certificate /etc/nginx/ssl/{{ racktables_domain }}.crt;
|
|
|
|
|
2016-06-18 14:44:59 +02:00
|
|
|
root /opt/racktables/wwwroot;
|
2016-06-18 13:23:12 +02:00
|
|
|
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
location ~ \.php(?:$|/) {
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2017-09-03 14:35:56 +02:00
|
|
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
2016-06-18 13:23:12 +02:00
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
}
|
|
|
|
}
|