mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
update scripts
This commit is contained in:
parent
c37f7bf947
commit
8864e1f37a
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
BUILDDIR?=./build
|
BUILDDIR?=./build
|
||||||
PROJS?=grs info blog os doc ci talk
|
PROJS?=grs info blog os doc ci talk get
|
||||||
copyfiles = index.ls mimes.json
|
copyfiles = index.ls mimes.json
|
||||||
main: copy
|
main: copy
|
||||||
for f in $(PROJS); do BUILDDIR=$(BUILDDIR)/"$${f}" make -C "$${f}" ; done
|
for f in $(PROJS); do BUILDDIR=$(BUILDDIR)/"$${f}" make -C "$${f}" ; done
|
||||||
|
BIN
dist/antd_web_apps.tar.gz
vendored
BIN
dist/antd_web_apps.tar.gz
vendored
Binary file not shown.
91
get/shs/antos.sh
Normal file → Executable file
91
get/shs/antos.sh
Normal file → Executable file
@ -4,15 +4,98 @@ set -e
|
|||||||
# base server
|
# base server
|
||||||
wget -O- https://get.bitdojo.dev/antd | bash -s "1.0.6b"
|
wget -O- https://get.bitdojo.dev/antd | bash -s "1.0.6b"
|
||||||
# base plugin
|
# base plugin
|
||||||
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "lua-0.5.2b wterm-1.0.0b tunnel-0.1.0b"
|
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "lua-0.5.2b"
|
||||||
|
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "wterm-1.0.0b"
|
||||||
|
wget -O- https://get.bitdojo.dev/antd_plugin | bash -s "tunnel-0.1.0b"
|
||||||
# install antos
|
# install antos
|
||||||
|
|
||||||
|
[ -d /tmp/apub ] && rm -r /tmp/apub
|
||||||
|
mkdir -p /tmp/apub
|
||||||
|
cd /tmp/apub
|
||||||
|
wget --no-check-certificate "https://github.com/lxsang/antd-tunnel-publishers/raw/master/dist/antd-publishers-0.1.0a.tar.gz"
|
||||||
|
tar xvzf antd-publishers-0.1.0a.tar.gz
|
||||||
|
cd antd-publishers-0.1.0a
|
||||||
|
./configure --prefix=/opt/www && make && make install
|
||||||
|
|
||||||
mkdir -p /opt/www/htdocs
|
mkdir -p /opt/www/htdocs
|
||||||
|
|
||||||
cd /opt/www/htdocs
|
cd /opt/www
|
||||||
|
|
||||||
wget --no-check-certificate "https://github.com/lxsang/antos/raw/master/dist/antos-1.0.0.tar.gz"
|
# create the configuration file
|
||||||
tar xvzf antos-1.0.0.tar.gz
|
cat << EOF > config.ini
|
||||||
|
[SERVER]
|
||||||
|
plugins=/opt/www/lib/
|
||||||
|
plugins_ext=.so
|
||||||
|
database=/opt/www/database/
|
||||||
|
tmpdir=/opt/www/tmp/
|
||||||
|
statistic_fifo=/opt/www/tmp/antd_stat
|
||||||
|
maxcon=200
|
||||||
|
backlog=5000
|
||||||
|
workers = 4
|
||||||
|
max_upload_size = 10000000
|
||||||
|
ssl.cert=/opt/www/server.crt
|
||||||
|
ssl.key=/opt/www/server.key
|
||||||
|
ssl.cipher=ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
|
||||||
|
|
||||||
|
gzip_enable = 1
|
||||||
|
gzip_types = text\/.*,.*\/css,.*\/json,.*\/javascript
|
||||||
|
|
||||||
|
|
||||||
|
[PORT:443]
|
||||||
|
htdocs=/opt/www/htdocs
|
||||||
|
ssl.enable=1
|
||||||
|
^\/os\/+(.*)$ = /os/router.lua?r=<1>&<query>
|
||||||
|
|
||||||
|
[AUTOSTART]
|
||||||
|
plugin = tunnel
|
||||||
|
|
||||||
|
|
||||||
|
[MIMES]
|
||||||
|
image/bmp=bmp
|
||||||
|
image/jpeg=jpg,jpeg
|
||||||
|
text/css=css
|
||||||
|
text/markdown=md
|
||||||
|
text/csv=csv
|
||||||
|
application/pdf=pdf
|
||||||
|
image/gif=gif
|
||||||
|
text/html=html,htm,chtml
|
||||||
|
application/json=json
|
||||||
|
application/javascript=js
|
||||||
|
image/png=png
|
||||||
|
image/x-portable-pixmap=ppm
|
||||||
|
application/x-rar-compressed=rar
|
||||||
|
image/tiff=tiff
|
||||||
|
application/x-tar=tar
|
||||||
|
text/plain=txt
|
||||||
|
application/x-font-ttf=ttf
|
||||||
|
application/xhtml+xml=xhtml
|
||||||
|
application/xml=xml
|
||||||
|
application/zip=zip
|
||||||
|
image/svg+xml=svg
|
||||||
|
application/vnd.ms-fontobject=eot
|
||||||
|
application/x-font-woff=woff,woff2
|
||||||
|
application/x-font-otf=otf
|
||||||
|
audio/mpeg=mp3,mpeg
|
||||||
|
|
||||||
|
[FILEHANDLER]
|
||||||
|
ls = lua
|
||||||
|
lua = lua
|
||||||
|
EOF
|
||||||
|
# generate cert
|
||||||
|
openssl genrsa -des3 -passout pass:1234 -out keypair.key 2048
|
||||||
|
openssl rsa -passin pass:1234 -in keypair.key -out server.key
|
||||||
|
openssl req -new -subj '/C=FR' -key server.key -out server.csr
|
||||||
|
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
||||||
|
|
||||||
|
cd /opt/www/htdocs
|
||||||
|
|
||||||
wget --no-check-certificate "https://github.com/lxsang/antd-web-apps/raw/master/dist/antd_web_apps.tar.gz"
|
wget --no-check-certificate "https://github.com/lxsang/antd-web-apps/raw/master/dist/antd_web_apps.tar.gz"
|
||||||
tar xvzf antd_web_apps.tar.gz
|
tar xvzf antd_web_apps.tar.gz
|
||||||
|
rm antd_web_apps.tar.gz
|
||||||
|
rm -r ci blog doc index.ls info talk get
|
||||||
|
|
||||||
|
cd /opt/www/htdocs/os
|
||||||
|
wget --no-check-certificate "https://github.com/lxsang/antos/raw/master/release/antos-1.0.0.tar.gz"
|
||||||
|
tar xvzf antos-1.0.0.tar.gz
|
||||||
|
rm antos-1.0.0.tar.gz
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user