forked from x/ContextOS
opt some
This commit is contained in:
parent
dd9ae90de2
commit
3f6313759e
@ -1,4 +1,3 @@
|
||||
proxy_set_header X-HOST $scheme://$http_host/;
|
||||
proxy_set_header X-Real-Port $remote_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
|
@ -13,18 +13,17 @@ client_body_temp_path /tmp/nginx/client_body_temp;
|
||||
|
||||
location / {
|
||||
include header.conf;
|
||||
proxy_pass http://127.0.0.1:9020;
|
||||
proxy_pass http://contexts;
|
||||
}
|
||||
|
||||
location /space/ {
|
||||
include header.conf;
|
||||
proxy_pass http://127.0.0.1:9020;
|
||||
proxy_pass http://contexts;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
}
|
||||
|
||||
location /x/ {
|
||||
include header.conf;
|
||||
proxy_pass http://127.0.0.1:9030;
|
||||
proxy_pass http://contexts_repos;
|
||||
}
|
||||
|
||||
|
@ -9,52 +9,43 @@ http {
|
||||
proxy_buffering off;
|
||||
keepalive_timeout 1800;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name shylinux.com;
|
||||
log_format access '[$time_local] $remote_addr'
|
||||
' "$request" "$http_referer" "$http_user_agent"'
|
||||
' $server_name $status $body_bytes_sent';
|
||||
access_log logs/access.log access;
|
||||
|
||||
location / {
|
||||
include header.conf;
|
||||
if ($http_user_agent ~* "^Wget") {
|
||||
proxy_pass http://127.0.0.1:9020;
|
||||
break;
|
||||
}
|
||||
return 302 https://shylinux.com/;
|
||||
}
|
||||
upstream contexts {
|
||||
server 127.0.0.1:9020;
|
||||
}
|
||||
upstream contexts_repos {
|
||||
server 127.0.0.1:9030;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name shylinux.com;
|
||||
include locations.conf;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name shylinux.com;
|
||||
include location.conf;
|
||||
|
||||
ssl_certificate_key 8293704_shylinux.com.key;
|
||||
ssl_certificate 8293704_shylinux.com.pem;
|
||||
|
||||
include location.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name contexts.com.cn;
|
||||
|
||||
location / {
|
||||
include header.conf;
|
||||
if ($http_user_agent ~* "^Wget") {
|
||||
proxy_pass http://127.0.0.1:9020;
|
||||
break;
|
||||
}
|
||||
return 302 https://contexts.com.cn/;
|
||||
}
|
||||
include locations.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name contexts.com.cn;
|
||||
include location.conf;
|
||||
|
||||
ssl_certificate_key 7424713_contexts.com.cn.key;
|
||||
ssl_certificate 7424713_contexts.com.cn.pem;
|
||||
|
||||
include location.conf;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
~web.code.nginx
|
||||
server module name demo
|
||||
|
||||
~cli
|
||||
daemon import
|
||||
|
||||
|
4
etc/path
4
etc/path
@ -1,7 +1,3 @@
|
||||
usr/install/busybox-1.33.0/_install/usr/sbin
|
||||
usr/install/busybox-1.33.0/_install/usr/bin
|
||||
usr/install/busybox-1.33.0/_install/sbin
|
||||
usr/install/busybox-1.33.0/_install/bin
|
||||
usr/install/ffmpeg-4.2.1/_install/bin
|
||||
usr/install/qemu-3.1.0/_install/bin
|
||||
usr/install/gcc-4.8.4/_install/bin
|
||||
|
@ -23,6 +23,7 @@ import (
|
||||
_ "shylinux.com/x/golang-story/src/tcmalloc"
|
||||
|
||||
_ "shylinux.com/x/golang-story/src/docker"
|
||||
_ "shylinux.com/x/golang-story/src/gotags"
|
||||
_ "shylinux.com/x/golang-story/src/grafana"
|
||||
_ "shylinux.com/x/golang-story/src/kubernetes"
|
||||
_ "shylinux.com/x/golang-story/src/prometheus"
|
||||
@ -35,6 +36,7 @@ import (
|
||||
_ "shylinux.com/x/linux-story/src/glibc"
|
||||
_ "shylinux.com/x/linux-story/src/kernel"
|
||||
_ "shylinux.com/x/linux-story/src/qemu"
|
||||
_ "shylinux.com/x/linux-story/src/sysctl"
|
||||
|
||||
_ "shylinux.com/x/mysql-story/src/client"
|
||||
_ "shylinux.com/x/mysql-story/src/server"
|
||||
|
@ -10,7 +10,7 @@ label `
|
||||
code wiki chat team mall
|
||||
linux nginx context redis mysql
|
||||
bash git golang vim tmux
|
||||
`
|
||||
` fg blue bg yellow
|
||||
|
||||
chapter "理论"
|
||||
label `
|
||||
|
Loading…
x
Reference in New Issue
Block a user