|
@@ -0,0 +1,60 @@
|
|
|
+#
|
|
|
+# server {
|
|
|
+# listen 80;
|
|
|
+# server_name wmswx.adprintingplus.com;
|
|
|
+# rewrite ^(.*) https://$server_name$1 permanent;
|
|
|
+# }
|
|
|
+
|
|
|
+server {
|
|
|
+ listen 10008;
|
|
|
+
|
|
|
+# listen 443 ssl;
|
|
|
+# server_name wmswx.adprintingplus.com;
|
|
|
+
|
|
|
+ # 启用支持websocket连接
|
|
|
+# proxy_set_header Upgrade $http_upgrade;
|
|
|
+# proxy_set_header Connection "upgrade";
|
|
|
+# proxy_http_version 1.1;
|
|
|
+
|
|
|
+ gzip on;
|
|
|
+ gzip_min_length 1k;
|
|
|
+ gzip_comp_level 9;
|
|
|
+ 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_vary on;
|
|
|
+ gzip_disable "MSIE [1-6]\.";
|
|
|
+
|
|
|
+ # 配置访问域名,域名可以有多个,用空格隔开
|
|
|
+# ssl_certificate /etc/nginx/conf.d/ssl/storageWeb-java/7692306_wmswx.adprintingplus.com.pem; #需要将cert-file-name.pem替换成已上传的证书文件的名称。
|
|
|
+# ssl_certificate_key /etc/nginx/conf.d/ssl/storageWeb-java/7692306_wmswx.adprintingplus.com.key; #需要将cert-file-name.key替换成已上传的证书私钥文件的名称。
|
|
|
+# ssl_session_timeout 5m;
|
|
|
+# ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
|
|
+# ssl_prefer_server_ciphers on;
|
|
|
+
|
|
|
+ location / {
|
|
|
+ # 编译后的文件启动配置
|
|
|
+ root /mnt/vue/bytesailingMobile2/dist;
|
|
|
+ client_max_body_size 1000m;
|
|
|
+ index index.html index.htm;
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /test-api {
|
|
|
+ rewrite ^/api/(.*)$ /$1 break;
|
|
|
+ proxy_pass http://127.0.0.1:9898;
|
|
|
+ client_max_body_size 1000m;
|
|
|
+ }
|
|
|
+
|
|
|
+# location /file {
|
|
|
+# root /mnt/;
|
|
|
+# }
|
|
|
+
|
|
|
+ error_page 405 =200 $uri;
|
|
|
+ error_page 404 /404.html;
|
|
|
+ error_page 500 502 503 504 /50x.html;
|
|
|
+ location = /50x.html {
|
|
|
+ root html;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|