diff --git a/etc/conf/nginx.conf b/etc/conf/nginx.conf new file mode 100644 index 00000000..1e0640f1 --- /dev/null +++ b/etc/conf/nginx.conf @@ -0,0 +1,57 @@ +user shy; + +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + keepalive_timeout 1800; + + sendfile on; + proxy_buffering off; + + server { + listen 80; + server_name shylinux.com; + + location / { + return 302 https://shylinux.com/; + } + } + + server { + listen 443 ssl; + server_name shylinux.com; + + ssl_certificate 6157098_shylinux.com.pem; + ssl_certificate_key 6157098_shylinux.com.key; + + ssl_session_cache shared:SSL:1m; + ssl_session_timeout 30m; + + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + client_max_body_size 100m; + + location / { + proxy_pass http://127.0.0.1:9020; + proxy_set_header X-HOST $scheme://$http_host; + proxy_set_header X-Real-Port $remote_port; + proxy_set_header X-Real-IP $remote_addr; + } + + location /space/ { + proxy_pass http://127.0.0.1:9020; + proxy_set_header X-HOST $scheme://$http_host; + proxy_set_header X-Real-Port $remote_port; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } + } +} diff --git a/src/main.shy b/src/main.shy index a2c971b8..f29c2632 100644 --- a/src/main.shy +++ b/src/main.shy @@ -36,6 +36,19 @@ section "神农架" field "趋势图" web.code.git.trend args `intshell` field "架构图" web.code.git.spide args `intshell` +section "centos" +spark shell ` +ssh root@114.132.199.163 # 登录主机 +useradd -m shy # 添加用户 +passwd shy # 添加密码 +visudo # 添加权限 +` + +order ` +添加域名 2021.shylinux.com +安装代理 nginx +` + section "macbook" refer ` Trackpad: Tap to click