Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger 접속 불가 문제 해결 #108

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading