fix nginx config

master
Aevann 2023-03-17 15:09:51 +02:00
parent 127eae8379
commit 88d90612ef
1 changed files with 21 additions and 21 deletions

View File

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