Add nextcloud configuration

This commit is contained in:
Tristan Daniël Maat 2020-02-08 21:30:01 +09:00
parent 5b5f922354
commit fe11b58a8a
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 81 additions and 0 deletions
etc/nixos/services/configs

View file

@ -0,0 +1,18 @@
server {
listen 80;
server_name localhost;
root /var/www/html;
index index.php index.html index.htm;
client_max_body_size 16G;
location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34]).php(?:$|/) {
fastcgi_split_path_info ^(.+.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass nextcloud:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;
include fastcgi_params;
}
}