Skip to content

Commit

Permalink
fix dev config
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiXxD committed Dec 10, 2024
1 parent c659282 commit d2b6aae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ services:
- 8080:80
volumes:
- ./nginx/dev.conf:/etc/nginx/nginx.conf
- ~/technopark/sem2/frontend/2024_2_NovaCode/dist:/var/www/dist
- ~/dist:/var/www/dist
- ./nginx/logs:/var/log/nginx
networks:
- app-network
Expand Down
18 changes: 9 additions & 9 deletions docker/nginx/dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=novamusic_cache:15m max_size=2g inactive=60s use_temp_path=off;

gzip on;
gzip_types text/plain text/css text/javascript text/xml application/json application/javascript;
gzip_types text/plain text/css text/javascript text/xml application/json application/javascript image/svg;

upstream user_service {
server novamusic-user:8080;
Expand Down Expand Up @@ -59,12 +59,12 @@ http {
listen 80;
server_name localhost;

proxy_set_header Host $http_host;
proxy_set_header Origin $http_origin;
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;
proxy_set_header Content-Type $http_content_type;
add_header Host $http_host;
add_header Origin $http_origin;
add_header X-Real-IP $remote_addr;
add_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header X-Forwarded-Proto $scheme;
add_header Content-Type $http_content_type;

location /api/v1/users {
proxy_pass http://user_service/api/v1/users;
Expand Down Expand Up @@ -103,8 +103,8 @@ http {
}

location / {
# proxy_cache novamusic_cache;
# proxy_cache_valid 200 30m;
proxy_cache novamusic_cache;
proxy_cache_valid 200 30m;

root /var/www/dist;
index index.html;
Expand Down

0 comments on commit d2b6aae

Please sign in to comment.