1
0
forked from x/ContextOS
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-07-01 14:52:01 +08:00
parent 03a94cd880
commit a660dc95bc
3 changed files with 17 additions and 4 deletions

View File

@ -44,7 +44,17 @@ http {
server {
listen 80;
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 {

View File

@ -1,8 +1,7 @@
#!/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
if [ "$ISH_CONF_PRE" = "" ]; then
source $PWD/.ish/plug.sh || source $HOME/.ish/plug.sh
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
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
fi
require sys/cli/file.sh

View File

@ -42,3 +42,7 @@ source "../usr/icebergs/misc/node/vue.shy"
source "../usr/icebergs/misc/java/spring.shy"
source "../usr/icebergs/core/chat/oauth/oauth.shy"
label `
Windows MacOSX Linux iOS Android
c/c++ golang python java javascript
`