Compare commits

...

3 commits

4 changed files with 18 additions and 11 deletions

View file

@ -111,9 +111,12 @@ services:
- nextcloud - nextcloud
- mariadb - mariadb
healthcheck: healthcheck:
test: ["CMD", "mysqladmin" ,"--user" ,"$MYSQL_USER" ,"--password=$MYSQL_PASSWORD" ,"ping" ,"-h" ,"localhost"] test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
interval: 20s start_period: 1m
timeout: 3s start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
labels: labels:
- "docker.group=netxtcloud" - "docker.group=netxtcloud"

View file

@ -127,7 +127,7 @@ http {
# Let Nextcloud's API for `/.well-known` URIs handle all other # Let Nextcloud's API for `/.well-known` URIs handle all other
# requests by passing them to the front-end controller. # requests by passing them to the front-end controller.
return 301 https://$host:443/index.php$request_uri; return 301 https://$host:443/index.php$request_uri;
} }
# Rules borrowed from `.htaccess` to hide certain paths from clients # Rules borrowed from `.htaccess` to hide certain paths from clients
@ -164,12 +164,12 @@ http {
# Javascript mimetype fixes for nginx # Javascript mimetype fixes for nginx
# Note: The block below should be removed, and the js|mjs section should be # Note: The block below should be removed, and the js|mjs section should be
# added to the block below this one. This is a temporary fix until Nginx # added to the block below this one. This is a temporary fix until Nginx
# upstream fixes the js mime-type # upstream fixes the js mime-type
location ~* \.(?:js|mjs)$ { location ~* \.(?:js|mjs)$ {
types { types {
text/javascript js mjs; text/javascript js mjs;
} }
default_type "text/javascript"; default_type "text/javascript";
try_files $uri /index.php$request_uri; try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463, $asset_immutable"; add_header Cache-Control "public, max-age=15778463, $asset_immutable";
@ -177,9 +177,15 @@ http {
} }
# Serve static files # Serve static files
location ~ \.(?:css|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ { location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
try_files $uri /index.php$request_uri; try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463, $asset_immutable"; add_header Cache-Control "public, max-age=15778463$asset_immutable";
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Permitted-Cross-Domain-Policies "none" always;
add_header X-Robots-Tag "noindex, nofollow" always;
add_header X-XSS-Protection "1; mode=block" always;
access_log off; # Optional: Don't log access to assets access_log off; # Optional: Don't log access to assets
location ~ \.wasm$ { location ~ \.wasm$ {

View file

@ -15,7 +15,6 @@ services:
- ${STORAGE_PATH}/caddy/data:/data - ${STORAGE_PATH}/caddy/data:/data
- ${STORAGE_PATH}/caddy/config:/config - ${STORAGE_PATH}/caddy/config:/config
- ${WWW_PATH}:/usr/share/caddy:ro - ${WWW_PATH}:/usr/share/caddy:ro
environment: environment:
- NETCUP_CUSTOMER_NUMBER=${NETCUP_CUSTOMER_NUMBER} - NETCUP_CUSTOMER_NUMBER=${NETCUP_CUSTOMER_NUMBER}
- NETCUP_API_KEY=${NETCUP_API_KEY} - NETCUP_API_KEY=${NETCUP_API_KEY}

View file

@ -9,7 +9,6 @@ up proxy;
up nextcloud; up nextcloud;
up git; up git;
up wallabag; up wallabag;
up www;
up firefoxsync; up firefoxsync;
up push; up push;
up rustdesk; up rustdesk;