forked from x/ContextOS
opt some
This commit is contained in:
parent
4f94e2287e
commit
7a77cc87f3
6
etc/local/2022.sh
Normal file
6
etc/local/2022.sh
Normal 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 &'
|
9
etc/portal/2022/location.conf
Normal file
9
etc/portal/2022/location.conf
Normal 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;
|
||||
}
|
11
etc/portal/2022/server.conf
Normal file
11
etc/portal/2022/server.conf
Normal 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;
|
||||
}
|
3
etc/portal/2022/upstream.conf
Normal file
3
etc/portal/2022/upstream.conf
Normal file
@ -0,0 +1,3 @@
|
||||
upstream 2022 {
|
||||
server 127.0.0.1:9022;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user