Add nextcloud configuration
This commit is contained in:
parent
5b5f922354
commit
fe11b58a8a
3 changed files with 81 additions and 0 deletions
etc/nixos/services/configs
18
etc/nixos/services/configs/nginx-nextcloud.conf
Normal file
18
etc/nixos/services/configs/nginx-nextcloud.conf
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue