sarel commited on
Commit
d3c91c2
·
verified ·
1 Parent(s): f988f79

Upload deploy/nginx/creditscope.conf with huggingface_hub

Browse files
Files changed (1) hide show
  1. deploy/nginx/creditscope.conf +83 -0
deploy/nginx/creditscope.conf ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 80;
3
+ listen [::]:80;
4
+ listen 20003;
5
+ listen [::]:20003;
6
+ server_name _;
7
+
8
+ client_max_body_size 20m;
9
+
10
+ location /api/chat/ws {
11
+ proxy_pass http://127.0.0.1:8080/api/chat/ws;
12
+ proxy_http_version 1.1;
13
+ proxy_set_header Upgrade $http_upgrade;
14
+ proxy_set_header Connection "upgrade";
15
+ proxy_set_header Host $host;
16
+ proxy_set_header X-Real-IP $remote_addr;
17
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
18
+ proxy_set_header X-Forwarded-Proto $scheme;
19
+ proxy_read_timeout 86400;
20
+ }
21
+
22
+ location /api/ {
23
+ proxy_pass http://127.0.0.1:8080/api/;
24
+ proxy_http_version 1.1;
25
+ proxy_set_header Host $host;
26
+ proxy_set_header X-Real-IP $remote_addr;
27
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
28
+ proxy_set_header X-Forwarded-Proto $scheme;
29
+ }
30
+
31
+ location / {
32
+ proxy_pass http://127.0.0.1:3000/;
33
+ proxy_http_version 1.1;
34
+ proxy_set_header Host $host;
35
+ proxy_set_header X-Real-IP $remote_addr;
36
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
37
+ proxy_set_header X-Forwarded-Proto $scheme;
38
+ }
39
+ }
40
+
41
+ server {
42
+ listen 443 ssl;
43
+ listen [::]:443 ssl;
44
+ server_name _;
45
+
46
+ ssl_certificate /etc/ssl/certs/creditscope-selfsigned.crt;
47
+ ssl_certificate_key /etc/ssl/private/creditscope-selfsigned.key;
48
+ ssl_protocols TLSv1.2 TLSv1.3;
49
+ ssl_session_cache shared:SSL:10m;
50
+ ssl_session_timeout 10m;
51
+
52
+ client_max_body_size 20m;
53
+
54
+ location /api/chat/ws {
55
+ proxy_pass http://127.0.0.1:8080/api/chat/ws;
56
+ proxy_http_version 1.1;
57
+ proxy_set_header Upgrade $http_upgrade;
58
+ proxy_set_header Connection "upgrade";
59
+ proxy_set_header Host $host;
60
+ proxy_set_header X-Real-IP $remote_addr;
61
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
62
+ proxy_set_header X-Forwarded-Proto https;
63
+ proxy_read_timeout 86400;
64
+ }
65
+
66
+ location /api/ {
67
+ proxy_pass http://127.0.0.1:8080/api/;
68
+ proxy_http_version 1.1;
69
+ proxy_set_header Host $host;
70
+ proxy_set_header X-Real-IP $remote_addr;
71
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
72
+ proxy_set_header X-Forwarded-Proto https;
73
+ }
74
+
75
+ location / {
76
+ proxy_pass http://127.0.0.1:3000/;
77
+ proxy_http_version 1.1;
78
+ proxy_set_header Host $host;
79
+ proxy_set_header X-Real-IP $remote_addr;
80
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
81
+ proxy_set_header X-Forwarded-Proto https;
82
+ }
83
+ }