mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 09:14:06 +08:00
opt some
This commit is contained in:
parent
03a94cd880
commit
a660dc95bc
@ -44,7 +44,17 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name shylinux.com;
|
server_name shylinux.com;
|
||||||
location / { return 302 https://shylinux.com/; }
|
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-HOST $scheme://$http_host;
|
||||||
|
proxy_set_header X-Real-Port $remote_port;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
if ($http_user_agent ~* "^Wget") {
|
||||||
|
proxy_pass http://127.0.0.1:9020;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return 302 https://shylinux.com/;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
[ -f $PWD/.ish/plug.sh ] || [ -f $HOME/.ish/plug.sh ] || git clone ${ISH_CONF_HUB_PROXY:="https://"}shylinux.com/x/intshell $PWD/.ish
|
require &>/dev/null || if [ -f $PWD/.ish/plug.sh ]; then source $PWD/.ish/plug.sh; elif [ -f $HOME/.ish/plug.sh ]; then source $HOME/.ish/plug.sh; else
|
||||||
if [ "$ISH_CONF_PRE" = "" ]; then
|
ctx_temp=$(mktemp); if curl -h &>/dev/null; then curl -o $ctx_temp -fsSL https://shylinux.com; else wget -O $ctx_temp -q http://shylinux.com; fi; source $ctx_temp intshell
|
||||||
source $PWD/.ish/plug.sh || source $HOME/.ish/plug.sh
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
require sys/cli/file.sh
|
require sys/cli/file.sh
|
||||||
|
@ -42,3 +42,7 @@ source "../usr/icebergs/misc/node/vue.shy"
|
|||||||
source "../usr/icebergs/misc/java/spring.shy"
|
source "../usr/icebergs/misc/java/spring.shy"
|
||||||
source "../usr/icebergs/core/chat/oauth/oauth.shy"
|
source "../usr/icebergs/core/chat/oauth/oauth.shy"
|
||||||
|
|
||||||
|
label `
|
||||||
|
Windows MacOSX Linux iOS Android
|
||||||
|
c/c++ golang python java javascript
|
||||||
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user