1
0
Fork 0
forked from exozyme/nginx

Create shlink.conf

This commit is contained in:
Anthony Wang 2021-05-27 22:27:21 +00:00 committed by GitHub
parent e809b37e9f
commit b1ee2e8c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
shlink.conf Normal file
View file

@ -0,0 +1,26 @@
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;
}
}