1
0
forked from x/ContextOS
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-02-15 10:58:21 +08:00
parent 4f94e2287e
commit 7a77cc87f3
4 changed files with 29 additions and 0 deletions

6
etc/local/2022.sh Normal file
View File

@ -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 &'

View File

@ -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;
}

View File

@ -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;
}

View File

@ -0,0 +1,3 @@
upstream 2022 {
server 127.0.0.1:9022;
}