Kubernetes部署luckysheet在线表格系统5-nginx配置

  sre



🚀Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。
文档
docker-compose.yml
在线例子
luckysheet系列

Kubernetes部署luckysheet在线表格系统1-redis
Kubernetes部署luckysheet在线表格系统2-postgresql
Kubernetes部署luckysheet在线表格系统3-java web server
Kubernetes部署luckysheet在线表格系统4-前端页面
Kubernetes部署luckysheet在线表格系统5-nginx配置

et.mydom.com.conf

#websocket configuration
map http_upgradeconnection_upgrade {
    default upgrade;
    ''      close;
}

upstream ws_dataluckysheet {
      server 10.240.0.4:30010;
      server 10.240.0.37:30010;
      server 10.240.0.69:30010;
      ip_hash;
}  


server {
        listen 80;
        server_name et.mydom.com;
        #rewrite ^(.*)https://host1 permanent;
        rewrite ^(.*)  https://et.mydom.com1 permanent;
}


server
    {
        listen 443 ssl;
        server_name sre.ink;
        add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
        ssl_certificate ssl/et.mydom.com.pem;
        ssl_certificate_key ssl/et.mydom.com.key;
        ssl_session_cache shared:SSL:10m;
        ssl_session_timeout 1440m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
#  ssl_ciphers ALL:!kEDH!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384';
        ssl_session_tickets on;
    ### openssl rand -out session_ticket.key 48
    ssl_session_ticket_key ssl/session_ticket.key;


    root /home/wwwroot/et.mydom.com;    index  index.html index.htm;



#websocket configuration
location /luckysheet/websocket/luckysheet {
    proxy_pass http://ws_dataluckysheet/luckysheet/websocket/luckysheet;

    proxy_set_header Hosthost;
    proxy_set_header X-real-ip remote_addr;
    proxy_set_header X-Forwarded-Forproxy_add_x_forwarded_for;

    #websocket
    proxy_http_version 1.1;
    proxy_set_header Upgrade http_upgrade;
    proxy_set_header Connection "upgrade";
}       

#Dynamic resource configuration
location /luckysheet/ {
    proxy_pass http://ws_dataluckysheet;
}

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/test.test.log;
    }

访问https://et.mydom.com

LEAVE A COMMENT

Captcha Code