diff --git a/shlink.conf b/shlink.conf new file mode 100644 index 0000000..163466a --- /dev/null +++ b/shlink.conf @@ -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; + } +}