Von nextcloud.conf, 10 Monate vorher, geschrieben in Plain Text.
[paste_expire] 1 Sekunde.
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.  
  19. location ^~ /var/www/nextcloud/apps/rainloop/app/data {
  20.     deny all;
  21. }
  22.  
  23. #SOCIAL app enabled? Please uncomment the following three rows
  24. #rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
  25. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
  26. #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
  27. client_max_body_size 10240M;
  28. location / {
  29. rewrite ^ /index.php$request_uri;
  30. }
  31. location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
  32. deny all;
  33. }
  34. location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
  35. deny all;
  36. }
  37. location ~ \.(?:flv|mp4|mov|m4a)$ {
  38. mp4;
  39. mp4_buffer_size 100M;
  40. mp4_max_buffer_size 1024M;
  41. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  42. include fastcgi_params;
  43. include php_optimization.conf;
  44. fastcgi_pass php-handler;
  45. fastcgi_param HTTPS on;
  46. }
  47. location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
  48. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  49. try_files $fastcgi_script_name =404;
  50. include fastcgi_params;
  51. include php_optimization.conf;
  52. fastcgi_pass php-handler;
  53. fastcgi_param HTTPS on;
  54. }
  55. location ~ ^/(?:updater|ocs-provider)(?:$|/) {
  56. try_files $uri/ =404;
  57. index index.php;
  58. }
  59. location ~ \.(?:css|js|woff2?|svg|gif|png|html|ttf|ico|jpg|jpeg)$ {
  60. try_files $uri /index.php$request_uri;
  61. access_log off;
  62. expires 360d;
  63. }
  64. }
captcha