Skip to content

Commit

Permalink
added localhost for nginx, fixed path to front static
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavCR committed Mar 1, 2024
1 parent 82ed795 commit 1f3e3ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infra/docker-compose-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
frontend:
image: ${DOCKERHUB_USERNAME_FRONT}/${PROJECT_NAME}_frontend:latest
env_file: .env
command: cp -r /.next/. /frontend_static/
command: cp -r .next/. /frontend_static/
ports:
- "3000:3000"
volumes:
Expand Down
2 changes: 1 addition & 1 deletion infra/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
server {
listen 80;
listen [::]:80;
server_name 89.23.117.80 devcodepet.tw1.ru 89.23.117.168 testcodepet.tw1.ru;
server_name 89.23.117.80 devcodepet.tw1.ru 89.23.117.168 testcodepet.tw1.ru localhost;

location /api/v1/ {
proxy_set_header Host $http_host;
Expand Down

0 comments on commit 1f3e3ac

Please sign in to comment.