InhaBas / Inhabas.com-api

인하대학교 빅데이터 동아리 IBAS 웹앱, rest 개편 프로젝트 (2021.12.21~)
https://www.inhabas.com
9 stars 11 forks source link

Frontend 서버 dev.inhabas.com에 올리기 #205

Closed whitem4rk closed 5 months ago

whitem4rk commented 8 months ago

API서버만 dev.inhabas.com에 올라가 있다보니 서로 진행상황 공유가 잘 안되는 문제가 있어서 프론트 서버도 올리기로 하였다.

nginx 설정 파일을 수정할 예정이다.

whitem4rk commented 8 months ago
location / { 
                root   /var/www/dev/inhabas.com/inhabas.com-front/build;
                index  index.html;
                try_files $uri /index.html;

                real_ip_header X-Forwarded-For; 

        }

처음에 location /front로 했으나 아무리 해도 되지 않았다. 이유는 저 /front를 넣으면 /var/www/dev/inhabas.com/inhabas.com-front/build/front/index.html 을 불러오기 때문이다.