## Version 2/25/2022 - Changelog: Default file for no-ssl # redirect all traffic to https server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /var/www/hudu2/public; index index.html; location ~ /\. { deny all; } location ~* ^.+\.(rb|log)$ { deny all; } # send non-static file requests to the app server location / { try_files $uri @rails; } location @rails { include /config/nginx/proxy.conf; proxy_pass http://app:3000; } } # enable subdomain method reverse proxy confs include /config/nginx/proxy-confs/*.subdomain.conf; # enable proxy cache for auth proxy_cache_path cache/ keys_zone=auth_cache:10m;