Skip to content

Commit

Permalink
Merge pull request #108 from woowacourse-teams/feat/#103
Browse files Browse the repository at this point in the history
Swagger 접속 불가 문제 해결
  • Loading branch information
pricelees authored Jul 24, 2024
2 parents 6e8235b + 3eeb01f commit cb26228
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Install Dependencies
run: npm install --frozen-lockfile

# - name: Run tests
# run: npm run test

- name: Build static file
run: npm run build

Expand Down
12 changes: 12 additions & 0 deletions frontend/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ server {
charset utf-8;
}


location ~ ^/(swagger-ui/|swagger|webjars|configuration|swagger-resources|v2|v3|csrf) {
proxy_pass http://localhost:8080;
proxy_set_header HOST $http_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;
proxy_set_header X-NginX-Proxy true;
proxy_redirect off;
charset utf-8;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
Expand Down

0 comments on commit cb26228

Please sign in to comment.