Von Tom, 1 Jahr vorher, geschrieben in Plain Text.
Einbetten
  1. server {
  2. server_name cloud.escher.cc;
  3. listen 127.0.0.1:83 default_server;
  4. root /var/www/nextcloud/;
  5. #access_log /var/log/nginx/nextcloud.access.log main;
  6. #error_log /var/log/nginx/nextcloud.error.log warn;
  7. location = /robots.txt {
  8. allow all;
  9. log_not_found off;
  10. access_log off;
  11. }
  12. location = /.well-known/carddav {
  13. return 301 $scheme://$host/remote.php/dav;
  14. }
  15. location = /.well-known/caldav {
  16. return 301 $scheme://$host/remote.php/dav;
  17. }
  18. #SOCIAL app enabled? Please uncomment the following three rows
  19. #rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
  20. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
  21. #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
  22. client_max_body_size 10240M;
  23. location / {
  24. rewrite ^ /index.php$request_uri;
  25. }
  26. location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
  27. deny all;
  28. }
  29. location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
  30. deny all;
  31. }
  32. location ~ \.(?:flv|mp4|mov|m4a)$ {
  33. mp4;
  34. mp4_buffer_size 100M;
  35. mp4_max_buffer_size 1024M;
  36. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  37. include fastcgi_params;
  38. include php_optimization.conf;
  39. fastcgi_pass php-handler;
  40. fastcgi_param HTTPS on;
  41. }
  42. location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
  43. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  44. include fastcgi_params;
  45. include php_optimization.conf;
  46. fastcgi_pass php-handler;
  47. fastcgi_param HTTPS on;
  48. }
  49. location ~ ^/(?:updater|ocs-provider)(?:$|/) {
  50. try_files $uri/ =404;
  51. index index.php;
  52. }
  53. location ~ \.(?:css|js|woff2?|svg|gif|png|html|ttf|ico|jpg|jpeg)$ {
  54. try_files $uri /index.php$request_uri;
  55. access_log off;
  56. expires 360d;
  57. }
  58. }
  59.  
captcha