1
0
forked from infra/ansible
infra/roles/partdb/files/vhost

41 lines
862 B
Plaintext
Raw Permalink Normal View History

2018-12-17 19:22:30 +01:00
server {
listen 80;
listen [::]:80;
server_name partdb.binary-kitchen.de;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /var/www/acme-challenge;
}
location / {
return 301 https://partdb.binary-kitchen.de$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name partdb.binary-kitchen.de;
ssl_certificate_key /etc/nginx/ssl/partdb.binary-kitchen.de.key;
ssl_certificate /etc/nginx/ssl/partdb.binary-kitchen.de.crt;
root /var/www/partdb;
client_max_body_size 32M;
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;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
2018-12-17 19:22:30 +01:00
fastcgi_intercept_errors on;
}
}