Skip to content

Commit

Permalink
Renamed folder
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Feb 9, 2024
1 parent 3e39473 commit faf9539
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ services:
# # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # #

frontend:
image: ghcr.io/museudamulher/website-frontend:production
nextjs:
image: ghcr.io/museudamulher/website-nextjs:production
restart: unless-stopped
logging:
options:
Expand Down
10 changes: 5 additions & 5 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ http {
# # #
# CACHE

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=frontendcache:512m inactive=360m;
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=nextjscache:512m inactive=360m;


# # #
Expand All @@ -90,9 +90,9 @@ http {
# # #
# UPSTREAM

upstream frontend_upstream {
upstream nextjs_upstream {
zone upstreams 64K;
server frontend:3000 max_fails=1 fail_timeout=2s;
server nextjs:3000 max_fails=1 fail_timeout=2s;
keepalive 10;
}

Expand Down Expand Up @@ -148,7 +148,7 @@ http {
}

# Cache configuration
proxy_cache frontendcache;
proxy_cache nextjscache;
proxy_cache_key "$scheme$request_method$host$request_uri";
proxy_cache_valid 200 60m;
proxy_cache_valid 404 5m;
Expand Down Expand Up @@ -181,7 +181,7 @@ http {
add_header Access-Control-Allow-Origin "*";
add_header Strict-Transport-Security "max-age=31536000" always;
# Proxy connect
proxy_pass http://frontend_upstream;
proxy_pass http://nextjs_upstream;
}

}
Expand Down

0 comments on commit faf9539

Please sign in to comment.