Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl;
- server_name grocy.mydomain.net;
- root /var/www/grocy/public;
- index index.php index.html;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- gzip_static on;
- }
- location ~ .php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
- ssl_certificate /etc/letsencrypt/live/grocy.mydomain.net/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/grocy.mydomain.net/privkey.pem; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment