forked from exozyme/nginx
Create shlink.conf
This commit is contained in:
parent
e809b37e9f
commit
b1ee2e8c86
1 changed files with 26 additions and 0 deletions
26
shlink.conf
Normal file
26
shlink.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue