diff --git a/nginx.conf b/nginx.conf index abcead9c1..53763573b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,7 +8,7 @@ server { proxy_set_header X-Forwarded-For $remote_addr; location / { - proxy_pass http://localhost:5000; + proxy_pass http://localhost:5000/; include includes/headers; } location /socket.io { @@ -43,45 +43,45 @@ server { - location /images { - alias /images; + location /images/ { + alias /images/; include includes/serve-static; } - location /chat_images { - alias /chat_images; + location /chat_images/ { + alias /chat_images/; include includes/serve-static; } - location /videos { - alias /videos; + location /videos/ { + alias /videos/; include includes/serve-static; } - location /audio { - alias /audio; + location /audio/ { + alias /audio/; include includes/serve-static; } - location /songs { - alias /songs; + location /songs/ { + alias /songs/; include includes/serve-static; } - location /asset_submissions { - alias /asset_submissions; + location /asset_submissions/ { + alias /asset_submissions/; include includes/serve-static; } - location /archives { - alias /archives; + location /archives/ { + alias /archives/; include includes/serve-static; } - location /assets { - alias /rDrama/files/assets; + location /assets/ { + alias /rDrama/files/assets/; include includes/serve-static; } - location /i { - alias /rDrama/files/assets/images; + location /i/ { + alias /rDrama/files/assets/images/; include includes/serve-static; } - location /e { - alias /rDrama/files/assets/images/emojis; + location /e/ { + alias /rDrama/files/assets/images/emojis/; include includes/serve-static; }