123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- upstream info_admin {
- server 39.105.97.139:30101;
- }
- upstream big_screen {
- server 39.105.97.139:30301;
- }
- server {
- listen 80;
- listen [::]:80;
- server_name info.windd.cn; #用户服务器的域名
- rewrite ^(.*) https://$server_name$1 permanent;
- }
- server {
- # https配置
- listen 443 ssl;
- server_name info.windd.cn; #用户服务器的域名
- ssl_certificate cert/7949175_info.windd.cn.pem;
- ssl_certificate_key cert/7949175_info.windd.cn.key;
- ssl_session_timeout 5m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
- ssl_prefer_server_ciphers on;
- # https配置
- #access_log /var/log/nginx/host.access.log main;
- rewrite ^/collection/public/uploads/(.*) https://strong-info.oss-cn-beijing.aliyuncs.com/public/uploads/$1 permanent;
- rewrite ^/collection/public/file/(.*) https://strong-info.oss-cn-beijing.aliyuncs.com/public/file/prod/$1 permanent;
- # location /collection/public/uploads/ {
- # #alias /strong/images/info_admin/;
- # #autoindex on;
- # proxy_pass https://strong-info.oss-cn-beijing.aliyuncs.com/public/uploads/;
- # }
- #
- # location /collection/public/file/ {
- # #alias /strong/images/info_admin/;
- # #autoindex on;
- # proxy_pass https://strong-info.oss-cn-beijing.aliyuncs.com/public/file/prod/;
- # }
- location /infoAdmin/ {
- proxy_pass http://39.105.97.139:60001/;
- }
- location /infoVue/ {
- proxy_pass http://39.105.97.139:60002/;
- }
- location /vueScreen/ {
- proxy_pass http://39.105.97.139:60003/;
- }
- location /vueSelfFilling/ {
- proxy_pass http://39.105.97.139:60004/;
- }
- location /collection/ {
- proxy_pass http://info_admin/;
- }
- location /bigScreen/ {
- proxy_pass http://big_screen/;
- }
- location / {
- root /usr/share/nginx/html;
- index index.html index.htm;
- }
- # Web服务API 代理
- location /_AMapService/ {
- set $args "$args&jscode=41a050423ed7d7fb733a8af969515ab4";
- proxy_pass https://restapi.amap.com/;
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- }
|