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

fixed nginx #57

Merged
merged 1 commit into from
Feb 23, 2024
Merged
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
17 changes: 6 additions & 11 deletions infra/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
server {
listen 80;
server_tokens off;
client_max_body_size 20M;
listen 80;

root /usr/share/nginx/html;

location /api/v1/ {
location /api/v1/ {
proxy_set_header Host $http_host;
proxy_pass http://backend:8000/api/v1/;
}
Expand All @@ -21,10 +17,9 @@ server {
proxy_set_header Host $http_host;
proxy_pass http://backend:8000/schema/;
}

location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.html break;
location / {
alias /staticfiles/;
index index.html;
try_files $uri $uri/ /index.html;
}
}
}