chawin.chen commited on
Commit ·
20a7591
1
Parent(s): a6fd509
init
Browse files- nginx/conf.d/ssl_proxy.conf +0 -37
nginx/conf.d/ssl_proxy.conf
CHANGED
|
@@ -1,15 +1,3 @@
|
|
| 1 |
-
upstream facescore_pool {
|
| 2 |
-
least_conn;
|
| 3 |
-
server ethonmax-picpocket.hf.space weight=2 max_fails=1 fail_timeout=60s;
|
| 4 |
-
keepalive 64;
|
| 5 |
-
}
|
| 6 |
-
|
| 7 |
-
upstream facescore_analyze {
|
| 8 |
-
least_conn;
|
| 9 |
-
server ethonmax-picpocket.hf.space weight=2 max_fails=1 fail_timeout=60s;
|
| 10 |
-
keepalive 64;
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
server {
|
| 14 |
listen 443 ssl;
|
| 15 |
client_max_body_size 1024M;# maximum upload size
|
|
@@ -55,30 +43,5 @@ server {
|
|
| 55 |
root /var/www;
|
| 56 |
index index.html index.htm;
|
| 57 |
}
|
| 58 |
-
location /facescore/analyze {
|
| 59 |
-
proxy_pass http://facescore_analyze;
|
| 60 |
-
proxy_set_header Host $host;
|
| 61 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 62 |
-
}
|
| 63 |
-
location /facescore/check_image_security {
|
| 64 |
-
proxy_pass http://facescore_analyze;
|
| 65 |
-
proxy_set_header Host $host;
|
| 66 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 67 |
-
}
|
| 68 |
-
location /facescore {
|
| 69 |
-
proxy_pass http://facescore_pool;
|
| 70 |
-
proxy_set_header Host $host;
|
| 71 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 72 |
-
}
|
| 73 |
-
|
| 74 |
-
location /cp_docs {
|
| 75 |
-
proxy_pass http://facescore_pool;
|
| 76 |
-
sub_filter '/openapi.json' '/cp_docs/openapi.json';
|
| 77 |
-
sub_filter '/docs' '/cp_docs/docs';
|
| 78 |
-
sub_filter_once off;
|
| 79 |
-
}
|
| 80 |
-
location /cp_docs/openapi.json {
|
| 81 |
-
proxy_pass http://facescore_pool/openapi.json;
|
| 82 |
-
}
|
| 83 |
}
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
server {
|
| 2 |
listen 443 ssl;
|
| 3 |
client_max_body_size 1024M;# maximum upload size
|
|
|
|
| 43 |
root /var/www;
|
| 44 |
index index.html index.htm;
|
| 45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
}
|
| 47 |
|