| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 
 | 
 
 worker_processes  6;
 
 
 
 
 
 
 
 
 worker_rlimit_nofile 65535;
 
 events {
 
 
 
 worker_connections  1024;
 }
 
 
 http {
 include       mime.types;
 default_type  application/octet-stream;
 
 
 
 
 
 
 
 
 server_tokens   off;
 
 
 sendfile        on;
 
 tcp_nopush     on;
 
 keepalive_timeout  65;
 tcp_nodelay        on;
 
 gzip  on;
 gzip_static on;
 
 
 gzip_min_length 1k;
 gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
 gzip_disable "MSIE [1-6].";
 
 open_file_cache max=65535 inactive=60s;
 
 open_file_cache_valid 80s;
 
 open_file_cache_min_uses 1;
 
 open_file_cache_errors on;
 
 
 
 client_header_buffer_size 4096;
 client_body_buffer_size 512k;
 
 client_max_body_size 128m;
 large_client_header_buffers 4 128k;
 client_header_timeout 15;
 client_body_timeout 15;
 
 send_timeout 30;
 
 server {
 listen       18600;
 server_name  0.0.0.0;
 
 
 
 
 
 location / {
 root   D:\mine-project\pc-web\dist;
 index  index.html index.htm;
 try_files  $uri $uri/ /index.html;
 
 
 }
 
 location /pcApi/ {
 rewrite ^/pcApi/(.*)$ /$1 break;
 proxy_pass http://172.15.37.225:3000;
 }
 
 
 
 
 
 error_page   500 502 503 504  /50x.html;
 location = /50x.html {
 root   html;
 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 server {
 
 listen               443;
 
 
 ssl                  on;
 root                 /usr/local/nginx/html;
 
 ssl_certificate      /usr/local/nginx/cert/i-xiao.space.pem;
 ssl_certificate_key  /usr/local/nginx/cert/i-xiao.space.key;
 ssl_session_timeout  5m;
 ssl_ciphers          ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
 ssl_protocols        TLSv1 TLSv1.1 TLSv1.2;
 ssl_prefer_server_ciphers on;
 location / {
 index index.html index.htm;
 try_files $uri $uri/ /index.html;
 
 
 error_page  405 =200 $uri;
 }
 
 
 location = /index.html {
 add_header Cache-Control "no-cache, no-store";
 }
 location /lily {
 
 root /usr/local/nginx/html;
 try_files $uri $uri/ /lily/index.html;
 index index.html index.htm;
 }
 location /mimosa {
 
 root /usr/local/nginx/html;
 try_files $uri $uri/ /mimosa/index.html;
 index index.html index.htm;
 }
 location /pcApi/ {
 proxy_pass http://118.190.59.105:3000/;
 }
 location /supervisor/ {
 proxy_pass http://118.190.59.105:9001/;
 }
 location /pc/ {
 proxy_pass http://118.190.59.105:8090/;
 
 
 }
 location /h5/ {
 proxy_pass http://118.190.59.105:8001/;
 add_header Cache-Control no-cache;
 }
 location /student/ {
 
 proxy_pass http://118.190.59.105:3000/;
 }
 
 location /model-face/ {
 root /var/pc-h5/static;
 add_header 'Access-Control-Allow-Origin' '*';
 add_header 'Access-Control-Allow-Credentials' 'true';
 add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
 add_header Cache-Control no-cache;
 
 
 }
 location /static/ {
 root /var/pc-h5;
 add_header 'Access-Control-Allow-Origin' '*';
 add_header Cache-Control no-cache;
 }
 error_page  404              /404.html;
 error_page  500 502 503 504  /50x.html;
 location = /50x.html {
 root   html;
 }
 }
 }
 
 |