mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
removed temp files
This commit is contained in:
1 parent
f7aef85e7f
commit
3f4f65f39c
329 files changed
+60
-37721
No files matched your search
+29
-1
@@ -31,7 +31,7 @@ COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Custom Nginx config to handle React Router (SPA)
|
||||
# Custom Nginx config to handle React Router (SPA) and proxy API requests
|
||||
RUN printf 'server {\n\
|
||||
listen 80;\n\
|
||||
location / {\n\
|
||||
@@ -39,6 +39,34 @@ RUN printf 'server {\n\
|
||||
index index.html index.htm;\n\
|
||||
try_files $uri $uri/ /index.html;\n\
|
||||
}\n\
|
||||
location /api/ {\n\
|
||||
proxy_pass http://holy-backend:8000/api/;\n\
|
||||
proxy_set_header Host $host;\n\
|
||||
proxy_set_header X-Real-IP $remote_addr;\n\
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\
|
||||
proxy_set_header X-Forwarded-Proto $scheme;\n\
|
||||
}\n\
|
||||
location /admin/ {\n\
|
||||
proxy_pass http://holy-backend:8000/admin/;\n\
|
||||
proxy_set_header Host $host;\n\
|
||||
proxy_set_header X-Real-IP $remote_addr;\n\
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\
|
||||
proxy_set_header X-Forwarded-Proto $scheme;\n\
|
||||
}\n\
|
||||
location /static/ {\n\
|
||||
proxy_pass http://holy-backend:8000/static/;\n\
|
||||
proxy_set_header Host $host;\n\
|
||||
proxy_set_header X-Real-IP $remote_addr;\n\
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\
|
||||
proxy_set_header X-Forwarded-Proto $scheme;\n\
|
||||
}\n\
|
||||
location /media/ {\n\
|
||||
proxy_pass http://holy-backend:8000/media/;\n\
|
||||
proxy_set_header Host $host;\n\
|
||||
proxy_set_header X-Real-IP $remote_addr;\n\
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\
|
||||
proxy_set_header X-Forwarded-Proto $scheme;\n\
|
||||
}\n\
|
||||
}' > /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in new issue
Block a user