## Max attachment size that can be uploaded to Wekan: client_max_body_size100M; sendfileon; tcp_nopushon; tcp_nodelayon; types_hash_max_size2048; server_tokensoff; set_real_ip_from0.0.0.0/32; # All addresses get a real IP. real_ip_header X-Forwarded-For; limit_conn_zone$binary_remote_addr zone=arbeit:10m; client_body_timeout60; client_header_timeout60; keepalive_timeout1010; send_timeout60; reset_timedout_connectionon;
# HTTPS server server { listen443 ssl http2; # we enable HTTP/2 here (previously SPDY) server_name example.com; # this domain must match Common Name (CN) in the SSL certificate
# If your application is not compatible with IE <= 10, this will redirect visitors to a page advising a browser update # This works because IE 11 does not present itself as MSIE anymore if ($http_user_agent~ "MSIE" ) { return303 https://browser-update.org/update.html; }
# Pass requests to Wekan. # If you have Wekan at https://example.com/wekan , change location to: # location /wekan { location / { # proxy_pass http://127.0.0.1:3001/wekan; proxy_pass http://127.0.0.1:3001; proxy_http_version1.1; proxy_set_header Upgrade $http_upgrade; # allow websockets proxy_set_header Connection $connection_upgrade; proxy_set_header X-Forwarded-For $remote_addr; # preserve client IP
# this setting allows the browser to cache the application in a way compatible with Meteor # on every applicaiton update the name of CSS and JS file is different, so they can be cache infinitely (here: 30 days) # the root path (/) MUST NOT be cached #if ($uri != '/wekan') { # expires 30d; #} } }