We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50bc40b commit 18a3670Copy full SHA for 18a3670
nginx.conf
@@ -2,12 +2,12 @@
2
server {
3
listen 80;
4
server_name intellibank.duckdns.org;
5
- return 301 https://$host$request_uri;
+ return 307 https://$host$request_uri;
6
}
7
8
# Main HTTPS server
9
10
- listen 443 ssl http2;
+ listen 443 ssl ;
11
12
13
@@ -35,4 +35,16 @@ server {
35
proxy_set_header X-Forwarded-Proto $scheme;
36
proxy_read_timeout 90;
37
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
48
49
50
0 commit comments