From 1f0ebdad0b779d16b2bd997516e2d46238ec3acb Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 1 Jan 2023 04:10:25 +0200 Subject: [PATCH] fix nginx conf --- nginx.conf | 134 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 88 insertions(+), 46 deletions(-) diff --git a/nginx.conf b/nginx.conf index beea6104c..ee080e0ff 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,47 +1,89 @@ - - - - Marsey World - - - - -
- -

Marsey World

-

You've stumbled upon a door where your mind is the key. There are none who will lend you guidance; these trials are yours to conquer alone. Entering here will take more than mere logic and strategy, but the criteria are just as hidden as what they reveal. Find yourself, and you will find the very thing hidden behind this page. Beyond here is something like a utopia — beyond here is marsey.world.

-

This is a mirage.

-
- - + location / { + proxy_pass http://localhost:5000/; + include includes/headers; + } + location /socket.io { + proxy_set_header Host $http_host; + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_pass http://localhost:5001/socket.io; + include includes/headers; + } + location /chat { + proxy_pass http://localhost:5001/chat; + include includes/headers; + } + location =/offline.html { + alias /rDrama/files/assets/offline.html; + include includes/headers; + } + error_page 502 = /502.html; + location =/502.html { + alias /rDrama/files/templates/errors/rDrama/502.html; + include includes/headers; + add_header Cache-Control "no-store"; + } + + + + location /images/ { + alias /images/; + include includes/serve-static; + } + location /videos/ { + alias /videos/; + include includes/serve-static; + } + location /audio/ { + alias /audio/; + include includes/serve-static; + } + location /songs/ { + alias /songs/; + include includes/serve-static; + } + location /asset_submissions/ { + alias /asset_submissions/; + include includes/serve-static; + } + location /archives/ { + alias /archives/; + include includes/serve-static; + } + + location /assets/ { + alias /rDrama/files/assets/; + include includes/serve-static; + } + location /i/ { + alias /rDrama/files/assets/images/; + include includes/serve-static; + } + location /e/ { + alias /rDrama/files/assets/images/emojis/; + include includes/serve-static; + } + + location =/robots.txt { + alias /rDrama/files/assets/robots.txt; + include includes/serve-static; + } + location =/icon.webp { + alias /rDrama/files/assets/images/rDrama/icon.webp; + include includes/serve-static; + } + location =/favicon.ico { + alias /rDrama/files/assets/images/rDrama/icon.webp; + include includes/serve-static; + } +}