Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Fix the fix for the fix for the actually fix
  • Loading branch information
NaysKutzu committed Nov 24, 2024
1 parent 1d5e83a commit ec21ec7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions framework.conf → backend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ server {

# Location for the frontend
location / {
proxy_pass http://mythicalclient_frontend:80; # Replace 'frontend:80' with your frontend service
proxy_pass http://mythicalclient_frontend:80$request_uri; # Replace 'frontend:80' with your frontend service
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}


# Deny access to sensitive files
location ~ /\.(ht|git|svn) {
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
volumes:
- ./frontend:/app
- /app/node_modules
- ./frontend.conf:/etc/nginx/conf.d/default.conf
networks:
- mythicalclient_network

Expand Down Expand Up @@ -36,7 +37,7 @@ services:
- "8080:80"
volumes:
- ./backend:/var/www/html
- ./framework.conf:/etc/nginx/conf.d/default.conf
- ./backend.conf:/etc/nginx/conf.d/default.conf
depends_on:
- mythicalclient_frontend
- mythicalclient_backend
Expand Down
11 changes: 11 additions & 0 deletions frontend.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server {
listen 80;
server_name localhost;

root /usr/share/nginx/html;
index index.html;

location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit ec21ec7

Please sign in to comment.