Skip to content

Commit 18a3670

Browse files
committed
file changes
1 parent 50bc40b commit 18a3670

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

nginx.conf

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
server {
33
listen 80;
44
server_name intellibank.duckdns.org;
5-
return 301 https://$host$request_uri;
5+
return 307 https://$host$request_uri;
66
}
77

88
# Main HTTPS server
99
server {
10-
listen 443 ssl http2;
10+
listen 443 ssl ;
1111
server_name intellibank.duckdns.org;
1212

1313

@@ -35,4 +35,16 @@ server {
3535
proxy_set_header X-Forwarded-Proto $scheme;
3636
proxy_read_timeout 90;
3737
}
38+
39+
location /docs {
40+
proxy_pass http://127.0.0.1:8000/docs;
41+
proxy_set_header Host $host;
42+
proxy_set_header X-Real-IP $remote_addr;
43+
}
44+
45+
location /openapi.json {
46+
proxy_pass http://127.0.0.1:8000/openapi.json;
47+
proxy_set_header Host $host;
48+
proxy_set_header X-Real-IP $remote_addr;
49+
}
3850
}

0 commit comments

Comments
 (0)