Skip to content

Commit

Permalink
changed max size, added it to both nginx configs
Browse files Browse the repository at this point in the history
  • Loading branch information
MurphyWants committed Dec 21, 2024
1 parent 970261d commit 945ea4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NEXTCLOUD_TIMEZONE: "America/New_York"
NEXTCLOUD_CONTAINER_VERSION: 'latest'
NEXTCLOUD_POSTGRES_CONTAINER_VERSION: '15'
NEXTCLOUD_HTTPS_PORT: 8084
NEXTCLOUD_NGINX_MAX_FILE_SIZE: "100M"
NEXTCLOUD_NGINX_MAX_FILE_SIZE: "512M"
NEXTCLOUD_FQDN: nextcloud.local
NEXTCLOUD_POSTGRES_ENV_POSTGRES_PASSWORD: "ChangeThisPassword" # https://hub.docker.com/_/postgres Mandatory env var POSTGRES_PASSWORD
NEXTCLOUD_POSTGRES_ENV_POSTGRES_USER: "postgresUser"
Expand Down
2 changes: 2 additions & 0 deletions templates/nextcloud_nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ server {
access_log /var/log/nginx/nextcloud.443.{{ NEXTCLOUD_FQDN }}.access.log;
error_log /var/log/nginx/nextcloud.443.{{ NEXTCLOUD_FQDN }}.error.log;

client_max_body_size {{ NEXTCLOUD_NGINX_MAX_FILE_SIZE }};

location / {
proxy_pass "http://localhost:{{ NEXTCLOUD_HTTPS_PORT }}";
proxy_set_header Host $http_host;
Expand Down

0 comments on commit 945ea4f

Please sign in to comment.