Advertisement
Guest User

Untitled

a guest
Apr 7th, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. server {
  2. listen 443;
  3. root /var/www/devroot;
  4. ssl on;
  5. ssl_certificate /etc/letsencrypt/live/xxxxxxxxxxxxxx/fullchain.pem;
  6. ssl_certificate_key /etc/letsencrypt/live/xxxxxxxxxxxxxx/privkey.pem;
  7. server_name xxxxxxxxxxxxxx;
  8. location ^~ /kanboard {
  9. allow all;
  10. index index.php;
  11. location /kanboard {
  12. try_files $uri $uri/ /kanboard/index.php$is_args$args;
  13. }
  14.  
  15. location ~ ^/kanboard/(?:kanboard|config.php|config.default.php) {
  16. deny all;
  17. }
  18.  
  19. location ~* /kanboard/data {
  20. deny all;
  21. }
  22.  
  23. location ~ \.php(?:$|/) {
  24. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  25. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26. fastcgi_param PATH_INFO $fastcgi_path_info;
  27. fastcgi_param HTTPS on; # Use only if HTTPS is configured
  28. fastcgi_index index.php;
  29. include fastcgi_params;
  30. fastcgi_pass unix:run/php-fpm.sock;
  31. }
  32.  
  33. location ~ /kanboard/\.ht {
  34. deny all;
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement