diff --git a/etc/local/2022.sh b/etc/local/2022.sh new file mode 100644 index 00000000..137d17e5 --- /dev/null +++ b/etc/local/2022.sh @@ -0,0 +1,6 @@ +# /etc/rc.local +# source /home/shy/2022-ContextOS/etc/local/2022.sh +source /home/shy/2022-ContextOS/etc/local.sh +[ -d /tmp/nginx ] || mkdir /tmp/nginx; cd /opt/daemon/10000 && $PWD/sbin/nginx -p $PWD +# su - mysql -c 'cd /opt/daemon/10001/ && $PWD/bin/mysqld --basedir=./ --datadir=./data --plugin-dir=./lib/plugin --socket=mysqld.socket --log-error=mysqld.log --pid-file=mysqld.pid --port 10001 &' +su - mysql -c 'cd /opt/10001/ && $PWD/bin/mysqld --basedir=./ --datadir=./data --plugin-dir=./lib/plugin --socket=mysqld.socket --log-error=mysqld.log --pid-file=mysqld.pid --port 10001 &' diff --git a/etc/portal/2022/location.conf b/etc/portal/2022/location.conf new file mode 100644 index 00000000..700a573b --- /dev/null +++ b/etc/portal/2022/location.conf @@ -0,0 +1,9 @@ +location / { + include header/proxy.conf; + proxy_pass http://2022; +} +location /space/ { + include header/proxy.conf; + include header/websocket.conf; + proxy_pass http://2022; +} diff --git a/etc/portal/2022/server.conf b/etc/portal/2022/server.conf new file mode 100644 index 00000000..caf29c33 --- /dev/null +++ b/etc/portal/2022/server.conf @@ -0,0 +1,11 @@ +server { + listen 443 ssl; + server_name 2022.shylinux.com; + include portal/2022/location.conf; +} +server { + listen 80; + server_name 2022.shylinux.com; + include portal/2022/location.conf; + # include location/tohttps.conf; +} diff --git a/etc/portal/2022/upstream.conf b/etc/portal/2022/upstream.conf new file mode 100644 index 00000000..f92575b4 --- /dev/null +++ b/etc/portal/2022/upstream.conf @@ -0,0 +1,3 @@ +upstream 2022 { + server 127.0.0.1:9022; +}