mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
43476f18c9
commit
25e711f284
57
etc/conf/nginx.conf
Normal file
57
etc/conf/nginx.conf
Normal file
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
13
src/main.shy
13
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user