forked from exozyme/nginx
26 lines
602 B
Text
26 lines
602 B
Text
server {
|
|
server_name h.exozy.me;
|
|
listen 443;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/exozy.me/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/exozy.me/privkey.pem;
|
|
|
|
root /usr/share/webapps/shlink;
|
|
index index.php;
|
|
charset utf-8;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
|
|
fastcgi_index index.php;
|
|
include fastcgi.conf;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|