antos-appimage/antd-config.ini

82 lines
2.3 KiB
INI
Raw Normal View History

2022-09-20 11:41:59 +02:00
[SERVER]
2022-10-03 16:23:24 +02:00
# DONOT edit following options
2022-09-20 11:41:59 +02:00
plugins=./opt/www/lib/
plugins_ext=.so
2022-10-03 16:23:24 +02:00
# These options can be changed
2022-09-20 11:41:59 +02:00
tmpdir=/tmp/
2022-10-03 17:15:51 +02:00
database=/tmp/antos_db/
2022-09-20 11:41:59 +02:00
maxcon=500
backlog=5000
workers = 4
max_upload_size = 20000000
gzip_enable = 1
gzip_types = text\/.*,.*\/css.*,.*\/json.*,.*\/javascript.*
2022-10-03 16:23:24 +02:00
debug_enable = 0
# if SSL is enable on one port, one should specify
# the SSL cert and key files
# Example: self signed key
# openssl genrsa -des3 -passout pass:1234 -out keypair.key 2048
# openssl rsa -passin pass:1234 -in keypair.key -out server.key
# openssl req -new -key server.key -out server.csr
# openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
# 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
2022-09-20 11:41:59 +02:00
[PORT:8888]
2023-01-27 15:56:44 +01:00
plugins = fcgi,tunnel,wvnc
2022-10-03 16:23:24 +02:00
# DONOT edit this option
2022-09-20 11:41:59 +02:00
htdocs=./opt/www/htdocs
2022-10-03 16:23:24 +02:00
# Edit this option to enable SSL
2022-09-20 11:41:59 +02:00
ssl.enable=0
2022-10-03 16:23:24 +02:00
; other config shoud be rules applied on this port
; For example the following rule will
; convert a request of type:
; name.example.com?rq=1
;TO:
; example.com/name/?rq=1
; this is helpful to redirect many sub domains
; to a sub folder of the same server
; ^([a-zA-Z][a-zA-Z0-9]*)\.[a-zA-Z0-9]+\..*$ = /<1><url>?<query>
; Sytax: [regular expression on the original request]=[new request rule]
2022-09-20 11:41:59 +02:00
^/os/(.*)$ = /os/router.lua?r=<1>&<query>
[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
2023-01-27 15:56:44 +01:00
[PLUGIN:fcgi]
name = fcgi
2023-01-09 19:57:59 +01:00
autoload = 1
2023-01-27 15:56:44 +01:00
file_type = lua
bin = ./opt/www/bin/luad
socket = unix:/tmp/fcgi.sock
2022-09-20 11:41:59 +02:00
2023-01-09 19:57:59 +01:00
[PLUGIN:tunnel]
autoload = 1
name = tunnel
hotlines = unix:/tmp/antd_hotline.sock