forked from x/ContextOS
opt some
This commit is contained in:
parent
9dd7fdb1bc
commit
b9b3b5a7be
@ -18,11 +18,16 @@ return
|
|||||||
ps aux |grep -v grep |grep ice.bin &>/dev/null && return
|
ps aux |grep -v grep |grep ice.bin &>/dev/null && return
|
||||||
ps aux |grep -v grep |grep tmux &>/dev/null && return
|
ps aux |grep -v grep |grep tmux &>/dev/null && return
|
||||||
sleep 1 && cd $CTX_ROOT && source etc/miss.sh
|
sleep 1 && cd $CTX_ROOT && source etc/miss.sh
|
||||||
|
return
|
||||||
|
|
||||||
# /etc/rc.local
|
# shy
|
||||||
su - shy -c 'cd /home/shy/contexts/ && ./bin/ice.bin forever serve'
|
su - shy -c "cd /home/shy/contexts/ && ./bin/ice.bin forever serve &"
|
||||||
cd /home/shy/contexts/usr/local/daemon/10000 && ./sbin/nginx -p $PWD
|
cd /home/shy/contexts/usr/local/daemon/10000 && ./sbin/nginx -p $PWD
|
||||||
|
|
||||||
# mac login
|
# dev
|
||||||
|
su - harveyshao -c "cd /home/harveyshao/contexts/ && ./bin/ice.bin forever serve dev dev &"
|
||||||
|
cd /home/harveyshao/contexts/usr/local/daemon/10002 && ./sbin/nginx -p $PWD
|
||||||
|
|
||||||
|
# mac
|
||||||
cd /Users/harveyshao/contexts/ && ./bin/ice.bin forever serve dev shy &
|
cd /Users/harveyshao/contexts/ && ./bin/ice.bin forever serve dev shy &
|
||||||
|
|
||||||
|
@ -1,24 +1,22 @@
|
|||||||
ssl_session_cache shared:SSL:1m;
|
|
||||||
ssl_session_timeout 30m;
|
ssl_session_timeout 30m;
|
||||||
|
ssl_session_cache shared:SSL:1m;
|
||||||
|
|
||||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
|
|
||||||
|
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 / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:9020;
|
proxy_pass http://127.0.0.1:9020;
|
||||||
proxy_set_header X-HOST $scheme://$host;
|
|
||||||
proxy_set_header X-Real-Port $remote_port;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /space/ {
|
location /space/ {
|
||||||
proxy_pass http://127.0.0.1:9020;
|
proxy_pass http://127.0.0.1:9020;
|
||||||
proxy_set_header X-HOST $scheme://$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";
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
user shy;
|
|
||||||
|
|
||||||
worker_processes 1;
|
worker_processes 1;
|
||||||
events { worker_connections 1024; }
|
events { worker_connections 1024; }
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
_ "shylinux.com/x/contexts/src/hi"
|
||||||
|
|
||||||
"shylinux.com/x/ice"
|
"shylinux.com/x/ice"
|
||||||
|
|
||||||
_ "shylinux.com/x/icebergs/misc/alpha"
|
_ "shylinux.com/x/icebergs/misc/alpha"
|
||||||
@ -34,8 +36,6 @@ import (
|
|||||||
_ "shylinux.com/x/linux-story/src/busybox"
|
_ "shylinux.com/x/linux-story/src/busybox"
|
||||||
_ "shylinux.com/x/linux-story/src/kernel"
|
_ "shylinux.com/x/linux-story/src/kernel"
|
||||||
_ "shylinux.com/x/linux-story/src/qemu"
|
_ "shylinux.com/x/linux-story/src/qemu"
|
||||||
|
|
||||||
_ "shylinux.com/x/contexts/src/hi"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() { print(ice.Run()) }
|
func main() { print(ice.Run()) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user