diff --git a/setup/start/nginx/nginx.conf b/setup/start/nginx/nginx.conf index 67d0aa9de..b892a1611 100644 --- a/setup/start/nginx/nginx.conf +++ b/setup/start/nginx/nginx.conf @@ -51,22 +51,15 @@ http { } } - # We have to enable https for nginx to read in the vhost in http request - # and send a 404. This is a side-effect of using wildcard DNS + # This server handles the naked domain for custom domains. + # It can also be used for wildcard subdomain 404. This feature is not used by the Cloudron itself + # because box always sets up DNS records for app subdomains. server { listen 443 default_server; ssl on; ssl_certificate cert/host.cert; ssl_certificate_key cert/host.key; - # increase the proxy buffer sizes to not run into buffer issues (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffers) - proxy_buffer_size 128k; - proxy_buffers 4 256k; - proxy_busy_buffers_size 256k; - - # Disable check to allow unlimited body sizes - client_max_body_size 0; - error_page 404 = @fallback; location @fallback { internal;