From b93e9e240db66d0d280f0a3bb029df0e70ddc966 Mon Sep 17 00:00:00 2001 From: lars-hagen Date: Tue, 18 Feb 2020 13:39:21 +0100 Subject: [PATCH] Moving dockerfiles to a different repo, cleaning up the environment --- .env | 4 +- .gitignore | 2 + config/litespeed/.DS_Store | Bin 12292 -> 0 bytes config/litespeed/1.6.4.build/Dockerfile | 10 - config/litespeed/1.6.4.lh/Dockerfile | 35 --- config/litespeed/1.6.4.lh/conf.bak/.DS_Store | Bin 6148 -> 0 bytes .../1.6.4.lh/conf.bak/httpd_config.conf | 236 ----------------- .../1.6.4.lh/conf.bak/httpd_config.conf.bak | 250 ------------------ .../1.6.4.lh/conf.bak/mime.properties | 162 ------------ .../1.6.4.lh/conf.bak/templates/ccl.conf | 84 ------ .../conf.bak/templates/phpsuexec.conf | 103 -------- .../1.6.4.lh/conf.bak/templates/rails.conf | 74 ------ .../1.6.4.lh/conf.bak/vhosts/.DS_Store | Bin 6148 -> 0 bytes .../1.6.4.lh/conf.bak/vhosts/Example/htgroup | 4 - .../1.6.4.lh/conf.bak/vhosts/Example/htpasswd | 2 - .../conf.bak/vhosts/Example/vhconf.conf | 91 ------- .../conf.bak/vhosts/Example/vhconf.conf.bak | 115 -------- .../litespeed/1.6.4.lh/conf/httpd_config.conf | 248 ----------------- .../1.6.4.lh/conf/httpd_config.conf.bak | 237 ----------------- .../1.6.4.lh/conf/httpd_config.conf0 | 242 ----------------- .../litespeed/1.6.4.lh/conf/mime.properties | 162 ------------ .../litespeed/1.6.4.lh/conf/mime.properties0 | 162 ------------ .../1.6.4.lh/conf/templates/ccl.conf | 84 ------ .../1.6.4.lh/conf/templates/ccl.conf0 | 84 ------ .../1.6.4.lh/conf/templates/rails.conf | 74 ------ .../1.6.4.lh/conf/templates/rails.conf0 | 74 ------ .../1.6.4.lh/conf/vhosts/Example/htgroup | 4 - .../1.6.4.lh/conf/vhosts/Example/htpasswd | 2 - .../1.6.4.lh/conf/vhosts/Example/vhconf.conf | 115 -------- .../1.6.4.lh/conf/vhosts/Example/vhconf.conf0 | 115 -------- config/litespeed/1.6.4.lh/entrypoint.sh | 13 - config/litespeed/1.6.4/.DS_Store | Bin 6148 -> 0 bytes config/litespeed/1.6.4/Dockerfile | 27 -- config/litespeed/1.6.4/conf/.DS_Store | Bin 6148 -> 0 bytes config/litespeed/1.6.4/conf/httpd_config.conf | 241 ----------------- .../1.6.4/conf/httpd_config.conf.bak | 250 ------------------ config/litespeed/1.6.4/conf/mime.properties | 162 ------------ .../litespeed/1.6.4/conf/templates/ccl.conf | 84 ------ .../1.6.4/conf/templates/phpsuexec.conf | 103 -------- .../litespeed/1.6.4/conf/templates/rails.conf | 74 ------ config/litespeed/1.6.4/conf/vhosts/.DS_Store | Bin 6148 -> 0 bytes .../1.6.4/conf/vhosts/Example/htgroup | 4 - .../1.6.4/conf/vhosts/Example/htpasswd | 2 - .../1.6.4/conf/vhosts/Example/vhconf.conf | 91 ------- .../1.6.4/conf/vhosts/Example/vhconf.conf.bak | 115 -------- config/litespeed/1.6.4/entrypoint.sh | 4 - config/litespeed/1.6.5.build/Dockerfile | 8 - config/litespeed/1.6.5.lh/Dockerfile | 35 --- .../litespeed/1.6.5.lh/conf/httpd_config.conf | 248 ----------------- .../1.6.5.lh/conf/httpd_config.conf.bak | 237 ----------------- .../1.6.5.lh/conf/httpd_config.conf0 | 242 ----------------- .../litespeed/1.6.5.lh/conf/mime.properties | 162 ------------ .../litespeed/1.6.5.lh/conf/mime.properties0 | 162 ------------ .../1.6.5.lh/conf/templates/ccl.conf | 84 ------ .../1.6.5.lh/conf/templates/ccl.conf0 | 84 ------ .../1.6.5.lh/conf/templates/rails.conf | 74 ------ .../1.6.5.lh/conf/templates/rails.conf0 | 74 ------ .../1.6.5.lh/conf/vhosts/Example/htgroup | 4 - .../1.6.5.lh/conf/vhosts/Example/htpasswd | 2 - .../1.6.5.lh/conf/vhosts/Example/vhconf.conf | 115 -------- .../1.6.5.lh/conf/vhosts/Example/vhconf.conf0 | 115 -------- config/litespeed/1.6.5.lh/entrypoint.sh | 13 - docker-compose.yml | 10 +- 63 files changed, 10 insertions(+), 5604 deletions(-) delete mode 100644 config/litespeed/.DS_Store delete mode 100644 config/litespeed/1.6.4.build/Dockerfile delete mode 100644 config/litespeed/1.6.4.lh/Dockerfile delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/.DS_Store delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf.bak delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/mime.properties delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/templates/ccl.conf delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/templates/phpsuexec.conf delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/templates/rails.conf delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/vhosts/.DS_Store delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/vhosts/Example/htgroup delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/vhosts/Example/htpasswd delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/vhosts/Example/vhconf.conf delete mode 100644 config/litespeed/1.6.4.lh/conf.bak/vhosts/Example/vhconf.conf.bak delete mode 100644 config/litespeed/1.6.4.lh/conf/httpd_config.conf delete mode 100644 config/litespeed/1.6.4.lh/conf/httpd_config.conf.bak delete mode 100644 config/litespeed/1.6.4.lh/conf/httpd_config.conf0 delete mode 100755 config/litespeed/1.6.4.lh/conf/mime.properties delete mode 100755 config/litespeed/1.6.4.lh/conf/mime.properties0 delete mode 100755 config/litespeed/1.6.4.lh/conf/templates/ccl.conf delete mode 100755 config/litespeed/1.6.4.lh/conf/templates/ccl.conf0 delete mode 100755 config/litespeed/1.6.4.lh/conf/templates/rails.conf delete mode 100755 config/litespeed/1.6.4.lh/conf/templates/rails.conf0 delete mode 100755 config/litespeed/1.6.4.lh/conf/vhosts/Example/htgroup delete mode 100755 config/litespeed/1.6.4.lh/conf/vhosts/Example/htpasswd delete mode 100644 config/litespeed/1.6.4.lh/conf/vhosts/Example/vhconf.conf delete mode 100644 config/litespeed/1.6.4.lh/conf/vhosts/Example/vhconf.conf0 delete mode 100644 config/litespeed/1.6.4.lh/entrypoint.sh delete mode 100644 config/litespeed/1.6.4/.DS_Store delete mode 100644 config/litespeed/1.6.4/Dockerfile delete mode 100644 config/litespeed/1.6.4/conf/.DS_Store delete mode 100644 config/litespeed/1.6.4/conf/httpd_config.conf delete mode 100644 config/litespeed/1.6.4/conf/httpd_config.conf.bak delete mode 100644 config/litespeed/1.6.4/conf/mime.properties delete mode 100644 config/litespeed/1.6.4/conf/templates/ccl.conf delete mode 100644 config/litespeed/1.6.4/conf/templates/phpsuexec.conf delete mode 100644 config/litespeed/1.6.4/conf/templates/rails.conf delete mode 100644 config/litespeed/1.6.4/conf/vhosts/.DS_Store delete mode 100644 config/litespeed/1.6.4/conf/vhosts/Example/htgroup delete mode 100644 config/litespeed/1.6.4/conf/vhosts/Example/htpasswd delete mode 100644 config/litespeed/1.6.4/conf/vhosts/Example/vhconf.conf delete mode 100644 config/litespeed/1.6.4/conf/vhosts/Example/vhconf.conf.bak delete mode 100644 config/litespeed/1.6.4/entrypoint.sh delete mode 100644 config/litespeed/1.6.5.build/Dockerfile delete mode 100644 config/litespeed/1.6.5.lh/Dockerfile delete mode 100644 config/litespeed/1.6.5.lh/conf/httpd_config.conf delete mode 100644 config/litespeed/1.6.5.lh/conf/httpd_config.conf.bak delete mode 100644 config/litespeed/1.6.5.lh/conf/httpd_config.conf0 delete mode 100755 config/litespeed/1.6.5.lh/conf/mime.properties delete mode 100755 config/litespeed/1.6.5.lh/conf/mime.properties0 delete mode 100755 config/litespeed/1.6.5.lh/conf/templates/ccl.conf delete mode 100755 config/litespeed/1.6.5.lh/conf/templates/ccl.conf0 delete mode 100755 config/litespeed/1.6.5.lh/conf/templates/rails.conf delete mode 100755 config/litespeed/1.6.5.lh/conf/templates/rails.conf0 delete mode 100755 config/litespeed/1.6.5.lh/conf/vhosts/Example/htgroup delete mode 100755 config/litespeed/1.6.5.lh/conf/vhosts/Example/htpasswd delete mode 100644 config/litespeed/1.6.5.lh/conf/vhosts/Example/vhconf.conf delete mode 100644 config/litespeed/1.6.5.lh/conf/vhosts/Example/vhconf.conf0 delete mode 100644 config/litespeed/1.6.5.lh/entrypoint.sh diff --git a/.env b/.env index cea91fb..3f34a90 100644 --- a/.env +++ b/.env @@ -1,6 +1,8 @@ TimeZone=America/New_York -LITESPEED=1.6.5.build +OLS_VERSION=1.6.8 + +PHP_VERSION=lsphp72 MYSQL_DATABASE=wordpress MYSQL_ROOT_PASSWORD=password diff --git a/.gitignore b/.gitignore index 56c8a92..6e1823d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ data latest.yml +config +lsws/conf \ No newline at end of file diff --git a/config/litespeed/.DS_Store b/config/litespeed/.DS_Store deleted file mode 100644 index 99b11a39af3b5564789620ecd8c9742b9cd314ab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12292 zcmeHNU2GLa6h5ba>@GjuB1rcN^rlUvYJuKb+9*HX{vcLq+R#E5Ofq|B z=A3h9=G>V%-`QCJz_yH)0H^~1g)*c1Du5CVAik0+^Ah8;yeJh@3sNRMpt26o4BMcI zatbnwq-BG&fV9A!WPu_Y4BNjYlvhH6_U-)r>wpWE8%(yRTt5X+^m=N-b%L;=;W`!- zmz0*RP*iQD(fPQxf4~{_y(J))NfV}7=isy%6Y(y_DsqrRIN_kt0Q?6I6)wIKoWqYCXlw+q4W*sXW8#IGa+p`?+SpTFGI4Rfe z^UQI(0&4P9Dk|sH zR2jw)%T3K%;E6`fIOv)w+tn>qs5Q4} zM*pOkvi?NWxO10g42=5Y<21#f0_&sZWUFBuVLk6RgRpzT_Gna}QulmzRmMI=8D!j6 z%c4=$B-x2iiJL*ykxqC6s_F3F1wAkb7G&WJoQ2omZJ32i@F9ExSKw>-7Ouf{_z`}F zU*UK71O9}+unfy_BW}hjjN^T{1Dml0leic6;bYi|2e2Op@h}ddg-@f4LW6#lIQPprj=A$Kw4lKTY#MpamtJ)BRV4}KRW2a zAOzzx2*DGTDGuOm@rWiPIwL4oB^|CxRH!lsB=}sN+T&3@8POR*g*u>62aI~gC_+J@ z4jAX+fJs5+Q(8b;V6g?tsHrgazXiDC|HS^^trCF$u664-*VJuoY}wU12aNNe@O(_p zfw(~09D(N$HpjvXU_ArRM(iGKQ=!n{AOU#$gu+m`zCuXHW7P@)Z=EA=BUT&RqEK|8 z7jdq3e~cteMK2b@+qHy3XkRZC+$ODArFcLu5!{EgoeIHzy-aZTXi1etEINpKZLC98 zbj%0y1)=GG&WdF>2jM#x zE<=33@EV-#O?$5I9U}>L@GEnucn3wRE{vtJL9|BUvm7?QmWxjnP19CuPxews+8df- zCTKI$L#)~ZknD}l?}Ct-JM6rPoA1OJ^k!CF@20Y z8I+6q-1Gd+CMpAQirr-(ekTXw1(vP!A<~E39v`yEJLGwfxf50vqy?k}qy?k}qy?6_ z1xjiD^X?j!YCJV>iZYUtk<=Z2rMYlV-kSSA`5sQbhg<0T_ZC zf^rplMAz}0$FJh4E&4={wCFhr)u=AiZreuy@*a-N|F8FO(*Ki%&MyQ1|2GLe B8G--+ diff --git a/config/litespeed/1.6.4.build/Dockerfile b/config/litespeed/1.6.4.build/Dockerfile deleted file mode 100644 index 256e507..0000000 --- a/config/litespeed/1.6.4.build/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM litespeedtech/openlitespeed-beta:1.6.4.lh - -ARG extensions - -RUN apt-get install $extensions -y - - - - - diff --git a/config/litespeed/1.6.4.lh/Dockerfile b/config/litespeed/1.6.4.lh/Dockerfile deleted file mode 100644 index 1e2f9e3..0000000 --- a/config/litespeed/1.6.4.lh/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -#FROM debian:jessie-slim -FROM ubuntu:18.04 - -RUN apt-get update && apt-get install wget curl tzdata -y - -RUN wget https://openlitespeed.org/preuse/openlitespeed-1.6.4.tgz && \ - tar xzvf openlitespeed-1.6.4.tgz && cd openlitespeed && ./install.sh && rm -rf /openlitespeed - -RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \ - lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y - -RUN wget -O /usr/local/lsws/admin/misc/lsup.sh \ - https://raw.githubusercontent.com/litespeedtech/openlitespeed/master/dist/admin/misc/lsup.sh && \ - chmod +x /usr/local/lsws/admin/misc/lsup.sh - -EXPOSE 7080 - -RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \ - chmod +x wp-cli.phar && mv wp-cli.phar /usr/bin/wp && \ - ln -s /usr/local/lsws/lsphp73/bin/php7.3 /usr/bin/php - -RUN apt-get install -y software-properties-common && \ - add-apt-repository universe && \ - add-apt-repository ppa:certbot/certbot && \ - apt-get update && \ - apt-get install -y certbot - -RUN rm -rf /usr/local/lsws/conf -ADD conf /usr/local/lsws/conf -RUN chown 999:999 /usr/local/lsws/conf -R -COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] -WORKDIR /var/www/vhosts/ -CMD ["/usr/local/lsws/bin/lswsctrl","start"] diff --git a/config/litespeed/1.6.4.lh/conf.bak/.DS_Store b/config/litespeed/1.6.4.lh/conf.bak/.DS_Store deleted file mode 100644 index 306c06e0c5b5627922d0895d82b788b00b5d3fca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKIZgvX5Ud6Z*&=aBIA7ogE6coq4{#WXV9_Ei5O2i0{4}Z$0oEEa5>zeq)J#v; zjHZI^Z2-1;-CY7}086?f-hG&x@4L_Jq#}+MXY{zm3m!1;###39fOA*DdBQWk@$dV) zVd!}*&hUmu3>cZlgTFS8pQxx5kOERb3P=Gd@S6f&TxrYmM2%8F3P^!Z1^oNa=#E|C zlo+254$%S-7Yv7S9=!yyd4SjzPKk`rEUCn#TD2IKbjDldb%j%6(qVBk ZOIuwiB z8E=se>k>6e0V!~(z-cbmUjMJ?KlJ~HB(0=?6!=#P*kXIV-SA0OTW62+THEM1bkEt- r-8c^lhbYIyD92oQIlhRb%xga9epfgp2A%Ps6ZJFTy2zx!Un}qd6*(KL diff --git a/config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf b/config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf deleted file mode 100644 index 9ffbcba..0000000 --- a/config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf +++ /dev/null @@ -1,236 +0,0 @@ -# -# PLAIN TEXT CONFIGURATION FILE -# -#It not set, will use host name as serverName -serverName -user nobody -group nogroup -priority 0 -inMemBufSize 60M -swappingDir /tmp/lshttpd/swap -autoFix503 1 -gracefulRestartTimeout 300 -mime conf/mime.properties -showVersionNumber 0 -adminEmails root@localhost - -errorlog logs/error.log { - logLevel DEBUG - debugLevel 0 - rollingSize 10M - enableStderrLog 1 -} - -accesslog logs/access.log { - rollingSize 10M - keepDays 30 - compressArchive 0 -} -indexFiles index.html, index.php - -expires { - enableExpires 1 - expiresByType image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800 -} -autoLoadHtaccess 1 - -tuning { - maxConnections 10000 - maxSSLConnections 10000 - connTimeout 300 - maxKeepAliveReq 10000 - keepAliveTimeout 5 - sndBufSize 0 - rcvBufSize 0 - maxReqURLLen 32768 - maxReqHeaderSize 65536 - maxReqBodySize 2047M - maxDynRespHeaderSize 32768 - maxDynRespSize 2047M - maxCachedFileSize 4096 - totalInMemCacheSize 20M - maxMMapFileSize 256K - totalMMapCacheSize 40M - useSendfile 1 - fileETag 28 - enableGzipCompress 1 - compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml - enableDynGzipCompress 1 - gzipCompressLevel 6 - gzipAutoUpdateStatic 1 - gzipStaticCompressLevel 6 - brStaticCompressLevel 6 - gzipMaxFileSize 10M - gzipMinFileSize 300 -} - -fileAccessControl { - followSymbolLink 1 - checkSymbolLink 0 - requiredPermissionMask 000 - restrictedPermissionMask 000 -} - -perClientConnLimit { - staticReqPerSec 0 - dynReqPerSec 0 - outBandwidth 0 - inBandwidth 0 - softLimit 10000 - hardLimit 10000 - gracePeriod 15 - banPeriod 300 -} - -CGIRLimit { - maxCGIInstances 20 - minUID 11 - minGID 10 - priority 0 - CPUSoftLimit 10 - CPUHardLimit 50 - memSoftLimit 1460M - memHardLimit 1470M - procSoftLimit 400 - procHardLimit 450 -} - -accessDenyDir { - dir / - dir /etc/* - dir /dev/* - dir conf/* - dir admin/conf/* -} - -accessControl { - allow ALL -} - -extprocessor lsphp { - type lsapi - address uds://tmp/lshttpd/lsphp.sock - maxConns 35 - env PHP_LSAPI_CHILDREN=35 - env LSAPI_AVOID_FORK=200M - initTimeout 60 - retryTimeout 0 - persistConn 1 - respBuffer 0 - autoStart 2 - path fcgi-bin/lsphp - backlog 100 - instances 1 - priority 0 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 1400 - procHardLimit 1500 -} - -scripthandler { - add lsapi:lsphp php -} - -railsDefaults { - maxConns 1 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -wsgiDefaults { - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -nodeDefaults { - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -module cache { - -checkPrivateCache 1 -checkPublicCache 1 -maxCacheObjSize 10000000 -maxStaleAge 200 -qsCache 1 -reqCookieCache 1 -respCookieCache 1 -ignoreReqCacheCtrl 1 -ignoreRespCacheCtrl 0 - -enableCache 0 -expireInSeconds 3600 -enablePrivateCache 0 -privateExpireInSeconds 3600 - ls_enabled 1 -} - -virtualhost Example { - vhRoot Example/ - configFile conf/vhosts/Example/vhconf.conf - allowSymbolLink 1 - enableScript 1 - restrained 1 - setUIDMode 0 -} - -listener HTTP { - address *:80 - secure 0 - map Example * -} - -listener HTTPS { - address *:443 - secure 1 - keyFile /usr/local/lsws/admin/conf/webadmin.key - certFile /usr/local/lsws/admin/conf/webadmin.crt - map Example * -} - -vhTemplate centralConfigLog { - templateFile conf/templates/ccl.conf - listeners HTTP -} - -vhTemplate EasyRailsWithSuEXEC { - templateFile conf/templates/rails.conf - listeners HTTP -} diff --git a/config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf.bak b/config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf.bak deleted file mode 100644 index 91533a5..0000000 --- a/config/litespeed/1.6.4.lh/conf.bak/httpd_config.conf.bak +++ /dev/null @@ -1,250 +0,0 @@ -# -# PLAIN TEXT CONFIGURATION FILE -# - -#It not set, will use host name as serverName -serverName -user nobody -group nogroup -priority 0 -autoRestart 1 -chrootPath / -enableChroot 0 -inMemBufSize 60M -swappingDir /tmp/lshttpd/swap -autoFix503 1 -gracefulRestartTimeout 300 -mime conf/mime.properties -showVersionNumber 0 -adminEmails root@localhost -indexFiles index.html, index.php -disableWebAdmin 0 - -errorlog logs/error.log { - logLevel DEBUG - debugLevel 0 - rollingSize 10M - enableStderrLog 1 -} - -accessLog logs/access.log { - rollingSize 10M - keepDays 30 - compressArchive 0 - logReferer 1 - logUserAgent 1 -} - -expires { - enableExpires 1 - expiresByType image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800 -} - -tuning{ - maxConnections 10000 - maxSSLConnections 10000 - connTimeout 300 - maxKeepAliveReq 10000 - smartKeepAlive 0 - keepAliveTimeout 5 - sndBufSize 0 - rcvBufSize 0 - gzipStaticCompressLevel 6 - gzipMaxFileSize 10M - eventDispatcher best - maxCachedFileSize 4096 - totalInMemCacheSize 20M - maxMMapFileSize 256K - totalMMapCacheSize 40M - useSendfile 1 - fileETag 28 - SSLCryptoDevice null - maxReqURLLen 32768 - maxReqHeaderSize 65536 - maxReqBodySize 2047M - maxDynRespHeaderSize 32768 - maxDynRespSize 2047M - enableGzipCompress 1 - enableBrCompress 4 - enableDynGzipCompress 1 - gzipCompressLevel 6 - brStaticCompressLevel 6 - compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml - gzipAutoUpdateStatic 1 - gzipMinFileSize 300 -} - -accessDenyDir{ - dir / - dir /etc/* - dir /dev/* - dir conf/* - dir admin/conf/* -} - -fileAccessControl{ - followSymbolLink 1 - checkSymbolLink 0 - requiredPermissionMask 000 - restrictedPermissionMask 000 -} - -perClientConnLimit{ - staticReqPerSec 0 - dynReqPerSec 0 - outBandwidth 0 - inBandwidth 0 - softLimit 10000 - hardLimit 10000 - gracePeriod 15 - banPeriod 300 -} - -CGIRLimit{ - maxCGIInstances 20 - minUID 11 - minGID 10 - priority 0 - CPUSoftLimit 10 - CPUHardLimit 50 - memSoftLimit 1460M - memHardLimit 1470M - procSoftLimit 400 - procHardLimit 450 -} - -accessControl{ - allow ALL - deny -} - -extProcessor lsphp{ - type lsapi - address uds://tmp/lshttpd/lsphp.sock - maxConns 10 - env PHP_LSAPI_CHILDREN=10 - env LSAPI_AVOID_FORK=200M - initTimeout 60 - retryTimeout 0 - persistConn 1 - pcKeepAliveTimeout - respBuffer 0 - autoStart 1 - path fcgi-bin/lsphp - backlog 100 - instances 1 - priority 0 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 1400 - procHardLimit 1500 -} - -scriptHandler{ - add lsapi:lsphp php -} - -railsDefaults{ - binPath - railsEnv 1 - maxConns 1 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -wsgiDefaults{ - binPath - railsEnv 1 - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -nodeDefaults{ - binPath - railsEnv 1 - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -virtualHost Example{ - vhRoot Example/ - allowSymbolLink 1 - enableScript 1 - restrained 1 - maxKeepAliveReq - smartKeepAlive - setUIDMode 0 - chrootMode 0 - configFile conf/vhosts/Example/vhconf.conf -} - -listener Default{ - address *:8088 - secure 0 - map Example * -} - -vhTemplate centralConfigLog{ - templateFile conf/templates/ccl.conf - listeners Default -} - -vhTemplate EasyRailsWithSuEXEC{ - templateFile conf/templates/rails.conf - listeners Default -} - -module cache { - ls_enabled 1 - - checkPrivateCache 1 - checkPublicCache 1 - maxCacheObjSize 10000000 - maxStaleAge 200 - qsCache 1 - reqCookieCache 1 - respCookieCache 1 - ignoreReqCacheCtrl 1 - ignoreRespCacheCtrl 0 - - enableCache 0 - expireInSeconds 3600 - enablePrivateCache 0 - privateExpireInSeconds 3600 - -} diff --git a/config/litespeed/1.6.4.lh/conf.bak/mime.properties b/config/litespeed/1.6.4.lh/conf.bak/mime.properties deleted file mode 100644 index fa55ee8..0000000 --- a/config/litespeed/1.6.4.lh/conf.bak/mime.properties +++ /dev/null @@ -1,162 +0,0 @@ -default = application/octet-stream -3gp = video/3gpp -3g2 = video/3gpp2 -ai, eps = application/postscript -aif, aifc, aiff = audio/x-aiff -asc = text/plain -asf = video/asf -asx = video/x-ms-asf -au = audio/basic -avi = video/x-msvideo -bcpio = application/x-bcpio -bmp = image/bmp -bin = application/octet-stream -bz, bz2 = application/x-bzip -cdf = application/x-netcdf -class = application/java-vm -cpio = application/x-cpio -cpt = application/mac-compactpro -crt = application/x-x509-ca-cert -csh = application/x-csh -css = text/css -dcr,dir, dxr = application/x-director -dms = application/octet-stream -doc = application/msword -dtd = application/xml-dtd -dvi = application/x-dvi -eot = application/vnd.ms-fontobject -etx = text/x-setext -exe = application/x-executable -ez = application/andrew-inset -flv = video/x-flv -gif = image/gif -gtar = application/x-gtar -gz, gzip = application/gzip -hdf = application/x-hdf -hqx = application/mac-binhex40 -htc = text/x-component -html, htm = text/html -ice = x-conference/x-cooltalk -ico = image/x-icon -ief = image/ief -iges, igs = model/iges -iso = application/x-cd-image -java = text/plain -jar = application/java-archive -jnlp = application/x-java-jnlp-file -jpeg, jpe, jpg = image/jpeg -js = application/x-javascript -js2 = application/javascript -js3 = text/javascript -json = application/json -jsp = text/plain -kar = audio/midi -latex = application/x-latex -lha, lzh = application/octet-stream -man = application/x-troff-man -mdb = application/vnd.ms-access -me = application/x-troff-me -mesh = model/mesh -mid, midi = audio/midi -mif = application/vnd.mif -movie = video/x-sgi-movie -mov = video/quicktime -mp2, mp3, mpga = audio/mpeg -mpeg, mpe, mpg = video/mpeg -mp4 = video/mp4 -mpp = application/vnd.ms-project -ms = application/x-troff-ms -msh = model/mesh -nc = application/x-netcdf -oda = application/oda -odb = application/vnd.oasis.opendocument.database -odc = application/vnd.oasis.opendocument.chart -odf = application/vnd.oasis.opendocument.formula -odg = application/vnd.oasis.opendocument.graphics -odi = application/vnd.oasis.opendocument.image -odp = application/vnd.oasis.opendocument.presentation -ods = application/vnd.oasis.opendocument.spreadsheet -odt = application/vnd.oasis.opendocument.text -ogg = audio/ogg -otf = application/x-font-woff -pbm = image/x-portable-bitmap -pdb = chemical/x-pdb -pdf = application/pdf -pgm = image/x-portable-graymap -pgn = application/x-chess-pgn -pls = audio/x-scpls -png = image/png -pnm = image/x-portable-anymap -ppm = image/x-portable-pixmap -ppt = application/vnd.ms-powerpoint -ps = application/postscript -qt,qtvr = video/quicktime -ra = audio/x-realaudio -ram, rm = audio/x-pn-realaudio -rar = application/x-rar-compressed -ras = image/x-cmu-raster -rgb = image/x-rgb -roff, t, tr = application/x-troff -rss = application/rss+xml -rsd = application/rsd+xml -rtf = application/rtf -rtx = text/richtext -ser = application/java-serialized-object -sgml, sgm = text/sgml -sh = application/x-sh -shar = application/x-shar -shtml = application/x-httpd-shtml -silo = model/mesh -sit = application/x-stuffit -skd, skm, skp, skt = application/x-koan -smi,smil = application/smil -snd = audio/basic -spl = application/x-futuresplash -sql = text/x-sql -src = application/x-wais-source -sv4cpio = application/x-sv4cpio -sv4crc = application/x-sv4crc -svg, svgz = image/svg+xml -swf = application/x-shockwave-flash -tar = application/x-tar -tcl = application/x-tcl -tex = application/x-tex -texi, texinfo = application/x-texinfo -tgz = application/x-gtar -tiff, tif = image/tiff -tsv = text/tab-separated-values -ttf, ttc = application/x-font-ttf -txt = text/plain -ustar = application/x-ustar -vcd = application/x-cdlink -vrml = model/vrml -vxml = application/voicexml+xml -wav = audio/vnd.wave -wax = audio/x-ms-wax -wbmp = image/vnd.wap.wbmp -webp = image/webp -wma = audio/x-ms-wma -wml = text/vnd.wap.wml -wmlc = application/vnd.wap.wmlc -wmls = text/vnd.wap.wmlscript -wmlsc = application/vnd.wap.wmlscriptc -woff = application/font-woff -woff2 = font/woff2 -woff3 = font/woff -woff4 = application/font-woff2 -ttf2 = font/ttf -woff_o1 = application/x-font-woff -wtls-ca-certificate = application/vnd.wap.wtls-ca-certificate -wri = application/vnd.ms-write -wrl = model/vrml -xbm = image/x-xbitmap -xhtml, xht = application/xhtml+xml -xls = application/vnd.ms-excel -xml, xsd, xsl = application/xml -xml2 = text/xml -xslt = application/xslt+xml -xpm = image/x-xpixmap -xwd = image/x-xwindowdump -xyz = chemical/x-pdb -zip = application/zip -z = application/compress diff --git a/config/litespeed/1.6.4.lh/conf.bak/templates/ccl.conf b/config/litespeed/1.6.4.lh/conf.bak/templates/ccl.conf deleted file mode 100644 index 8ed9f7e..0000000 --- a/config/litespeed/1.6.4.lh/conf.bak/templates/ccl.conf +++ /dev/null @@ -1,84 +0,0 @@ -allowSymbolLink 1 -chrootMode 0 -enableScript 1 -restrained 1 -setUIDMode 0 -vhRoot $SERVER_ROOT/$VH_NAME/ -configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf - -virtualHostConfig { - enableGzip 1 - docRoot $VH_ROOT/html/ - - hotlinkCtrl { - allowedHosts - enableHotlinkCtrl 0 - suffixes gif, jpeg, jpg - allowDirectAccess 1 - redirectUri - onlySelf 1 - } - - general { - enableContextAC 0 - } - - expires { - expiresDefault - enableExpires 1 - } - - rewrite { - enable 0 - logLevel 0 - } - - index { - useServer 0 - autoIndex 0 - indexFiles index.html - autoIndexURI /_autoindex/default.php - } - - accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{ - useServer 0 - keepDays 30 - rollingSize 100M - compressArchive 1 - logUserAgent 1 - logReferer 1 - } - - errorlog { - useServer 1 - } - - context /cgi-bin/{ - type cgi - location $VH_ROOT/cgi-bin/ - allowBrowse 1 - } - - context / { - allowBrowse 1 - location $DOC_ROOT/ - rewrite { - RewriteFile .htaccess - } - } - - awstats { - updateMode 0 - siteAliases 127.0.0.1 localhost - updateInterval 86400 - updateOffset 0 - siteDomain localhost - workingDir $VH_ROOT/awstats - awstatsURI /awstats/ - } - - accessControl { - deny - allow * - } -} diff --git a/config/litespeed/1.6.4.lh/conf.bak/templates/phpsuexec.conf b/config/litespeed/1.6.4.lh/conf.bak/templates/phpsuexec.conf deleted file mode 100644 index b5d9e27..0000000 --- a/config/litespeed/1.6.4.lh/conf.bak/templates/phpsuexec.conf +++ /dev/null @@ -1,103 +0,0 @@ -allowSymbolLink 1 -chrootMode 0 -enableScript 1 -restrained 1 -setUIDMode 2 -vhRoot $SERVER_ROOT/$VH_NAME/ -configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf - -virtualHostConfig { - enableGzip 1 - docRoot $VH_ROOT/public_html/ - - rewrite { - enable 0 - logLevel 0 - } - - awstats { - updateMode 0 - workingDir $VH_ROOT/awstats - awstatsURI /awstats/ - siteDomain localhost - siteAliases 127.0.0.1 localhost - updateInterval 86400 - updateOffset 0 - securedConn 0 - } - - extProcessor $VH_NAME_lsphp{ - path $SERVER_ROOT/fcgi-bin/lsphp - backlog 10 - instances 5 - runOnStartUp 0 - respBuffer 0 - autoStart 1 - extMaxIdleTime 60 - priority 0 - memSoftLimit 100M - memHardLimit 150M - procSoftLimit 100 - procHardLimit 200 - type lsapi - address uds://tmp/lshttpd/$VH_NAME_lsphp.sock - maxConns 5 - initTimeout 60 - retryTimeout 0 - persistConn 1 - pcKeepAliveTimeout 30 - } - - index { - useServer 0 - autoIndex 0 - autoIndexURI /_autoindex/default.php - indexFiles index.html - } - - accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{ - keepDays 30 - rollingSize 100M - compressArchive 1 - useServer 0 - logHeaders 3 - } - - errorlog { - useServer 1 - } - - hotlinkCtrl { - enableHotlinkCtrl 0 - suffixes gif, jpeg, jpg - allowDirectAccess 1 - onlySelf 1 - } - - accessControl { - allow * - } - - scriptHandler { - add lsapi:$VH_NAME_lsphp php - } - - expires { - enableExpires 1 - } - - context /cgi-bin/{ - type cgi - location $VH_ROOT/cgi-bin/ - accessControl - rewrite - } - - context / { - allowBrowse 1 - location $DOC_ROOT/ - rewrite { - RewriteFile .htaccess - } - } -} diff --git a/config/litespeed/1.6.4.lh/conf.bak/templates/rails.conf b/config/litespeed/1.6.4.lh/conf.bak/templates/rails.conf deleted file mode 100644 index e6a2fd3..0000000 --- a/config/litespeed/1.6.4.lh/conf.bak/templates/rails.conf +++ /dev/null @@ -1,74 +0,0 @@ -allowSymbolLink 1 -chrootMode 0 -enableScript 1 -restrained 1 -setUIDMode 2 -vhRoot $SERVER_ROOT/$VH_NAME/ -configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf - -virtualHostConfig { - enableGzip 1 - docRoot $VH_ROOT/public/ - - accessControl { - allow * - } - - hotlinkCtrl { - suffixes gif, jpeg, jpg - allowDirectAccess 1 - onlySelf 1 - enableHotlinkCtrl 0 - } - - rewrite { - enable 0 - logLevel 0 - } - - index { - useServer 0 - autoIndex 0 - indexFiles index.html - autoIndexURI /_autoindex/default.php - } - - accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{ - logHeaders 3 - compressArchive 0 - useServer 0 - keepDays 30 - rollingSize 500M - } - - errorlog { - useServer 1 - } - - context / { - railsEnv 1 - maxConns 5 - location $VH_ROOT/ - type rails - accessControl - addDefaultCharset off - rewrite { - RewriteFile .htaccess - } - } - - expires { - enableExpires 1 - } - - awstats { - workingDir $VH_ROOT/awstats - awstatsURI /awstats/ - siteDomain localhost - siteAliases 127.0.0.1 localhost - updateMode 0 - updateInterval 86400 - updateOffset 0 - securedConn 0 - } -} diff --git a/config/litespeed/1.6.4.lh/conf.bak/vhosts/.DS_Store b/config/litespeed/1.6.4.lh/conf.bak/vhosts/.DS_Store deleted file mode 100644 index 4c26f3708aa3fb726e8adc5b8d92077ced7da2b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5EC}5S)cbL`svA(pTUHR+O9|7YHGA4+RM!QND_EakR{SibM~(P=IEo_1Nnj zTb|zdhI4K|n{=NeKeQ0#YUN|Pkr-MVZ0K^%?VVp-V zL2Mo%_QEld5t=2Hm{hA4!;;Q;tGr$~CMF$L&4<;^Rvn7P?L5ClI; /dev/null; then - break - fi - sleep 60 -done - diff --git a/config/litespeed/1.6.4/.DS_Store b/config/litespeed/1.6.4/.DS_Store deleted file mode 100644 index 7022c37a9cfafe528176dd7039da406dbdbb1a44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~F^x@qaLyQ3Az;YPZF-wre3uH~UPF84^(}QKJ z#TerCXeUcvSCg%?x5IMyu)MSR6hpJ#4l7J(Rs#xBKnlzhSoM7L^Z!8qYyO|LD3tYczPz5-Pg(VKqmywt!_!Xy6F-VK^f2xhUywD~I$5FVM<8TSkOKdz Fz%N?;5~~0J diff --git a/config/litespeed/1.6.4/Dockerfile b/config/litespeed/1.6.4/Dockerfile deleted file mode 100644 index 5dcdb74..0000000 --- a/config/litespeed/1.6.4/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -#FROM debian:jessie-slim -FROM ubuntu:18.04 - -RUN apt-get update && apt-get install wget curl tzdata -y - -RUN wget https://openlitespeed.org/preuse/openlitespeed-1.6.4.tgz && \ - tar xzvf openlitespeed-1.6.4.tgz && cd openlitespeed && ./install.sh && rm -rf /openlitespeed - -RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \ - lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y - -EXPOSE 7080 - -RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \ - chmod +x wp-cli.phar && mv wp-cli.phar /usr/bin/wp && \ - ln -s /usr/local/lsws/lsphp73/bin/php7.3 /usr/bin/php - - -RUN rm -rf /usr/local/lsws/conf -ADD conf /usr/local/lsws/conf -RUN chown 999:999 /usr/local/lsws/conf -R -COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] -WORKDIR /var/www/vhosts/ -CMD ["/usr/local/lsws/bin/openlitespeed","-n"] - diff --git a/config/litespeed/1.6.4/conf/.DS_Store b/config/litespeed/1.6.4/conf/.DS_Store deleted file mode 100644 index 306c06e0c5b5627922d0895d82b788b00b5d3fca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKIZgvX5Ud6Z*&=aBIA7ogE6coq4{#WXV9_Ei5O2i0{4}Z$0oEEa5>zeq)J#v; zjHZI^Z2-1;-CY7}086?f-hG&x@4L_Jq#}+MXY{zm3m!1;###39fOA*DdBQWk@$dV) zVd!}*&hUmu3>cZlgTFS8pQxx5kOERb3P=Gd@S6f&TxrYmM2%8F3P^!Z1^oNa=#E|C zlo+254$%S-7Yv7S9=!yyd4SjzPKk`rEUCn#TD2IKbjDldb%j%6(qVBk ZOIuwiB z8E=se>k>6e0V!~(z-cbmUjMJ?KlJ~HB(0=?6!=#P*kXIV-SA0OTW62+THEM1bkEt- r-8c^lhbYIyD92oQIlhRb%xga9epfgp2A%Ps6ZJFTy2zx!Un}qd6*(KL diff --git a/config/litespeed/1.6.4/conf/httpd_config.conf b/config/litespeed/1.6.4/conf/httpd_config.conf deleted file mode 100644 index bb548a6..0000000 --- a/config/litespeed/1.6.4/conf/httpd_config.conf +++ /dev/null @@ -1,241 +0,0 @@ -# -# PLAIN TEXT CONFIGURATION FILE -# -#It not set, will use host name as serverName -serverName -user nobody -group nogroup -priority 0 -inMemBufSize 60M -swappingDir /tmp/lshttpd/swap -autoFix503 1 -gracefulRestartTimeout 300 -mime conf/mime.properties -showVersionNumber 0 -adminEmails root@localhost - -errorlog logs/error.log { - logLevel DEBUG - debugLevel 0 - rollingSize 10M - enableStderrLog 1 -} - -accesslog logs/access.log { - rollingSize 10M - keepDays 30 - compressArchive 0 -} -indexFiles index.html, index.php - -expires { - enableExpires 1 - expiresByType image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800 -} -autoLoadHtaccess 1 - -tuning { - maxConnections 10000 - maxSSLConnections 10000 - connTimeout 300 - maxKeepAliveReq 10000 - keepAliveTimeout 5 - sndBufSize 0 - rcvBufSize 0 - maxReqURLLen 32768 - maxReqHeaderSize 65536 - maxReqBodySize 2047M - maxDynRespHeaderSize 32768 - maxDynRespSize 2047M - maxCachedFileSize 4096 - totalInMemCacheSize 20M - maxMMapFileSize 256K - totalMMapCacheSize 40M - useSendfile 1 - fileETag 28 - enableGzipCompress 1 - compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml - enableDynGzipCompress 1 - gzipCompressLevel 6 - gzipAutoUpdateStatic 1 - gzipStaticCompressLevel 6 - brStaticCompressLevel 6 - gzipMaxFileSize 10M - gzipMinFileSize 300 -} - -fileAccessControl { - followSymbolLink 1 - checkSymbolLink 0 - requiredPermissionMask 000 - restrictedPermissionMask 000 -} - -perClientConnLimit { - staticReqPerSec 0 - dynReqPerSec 0 - outBandwidth 0 - inBandwidth 0 - softLimit 10000 - hardLimit 10000 - gracePeriod 15 - banPeriod 300 -} - -CGIRLimit { - maxCGIInstances 20 - minUID 11 - minGID 10 - priority 0 - CPUSoftLimit 10 - CPUHardLimit 50 - memSoftLimit 1460M - memHardLimit 1470M - procSoftLimit 400 - procHardLimit 450 -} - -accessDenyDir { - dir / - dir /etc/* - dir /dev/* - dir conf/* - dir admin/conf/* -} - -accessControl { - allow ALL -} - -extprocessor lsphp { - type lsapi - address uds://tmp/lshttpd/lsphp.sock - maxConns 35 - env PHP_LSAPI_CHILDREN=35 - env LSAPI_AVOID_FORK=200M - initTimeout 60 - retryTimeout 0 - persistConn 1 - respBuffer 0 - autoStart 2 - path fcgi-bin/lsphp - backlog 100 - instances 1 - priority 0 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 1400 - procHardLimit 1500 -} - -scripthandler { - add lsapi:lsphp php -} - -railsDefaults { - maxConns 1 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -wsgiDefaults { - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -nodeDefaults { - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -module cache { - -checkPrivateCache 1 -checkPublicCache 1 -maxCacheObjSize 10000000 -maxStaleAge 200 -qsCache 1 -reqCookieCache 1 -respCookieCache 1 -ignoreReqCacheCtrl 1 -ignoreRespCacheCtrl 0 - -enableCache 0 -expireInSeconds 3600 -enablePrivateCache 0 -privateExpireInSeconds 3600 - ls_enabled 1 -} - -virtualhost Example { - vhRoot Example/ - configFile conf/vhosts/Example/vhconf.conf - allowSymbolLink 1 - enableScript 1 - restrained 1 - setUIDMode 0 -} - -listener HTTP { - address *:80 - secure 0 - map Example * -} - -listener HTTPS { - address *:443 - secure 1 - keyFile /usr/local/lsws/admin/conf/webadmin.key - certFile /usr/local/lsws/admin/conf/webadmin.crt - map Example * -} - -vhTemplate centralConfigLog { - templateFile conf/templates/ccl.conf - listeners Default, HTTP, HTTPS - - member localhost { - vhDomain * - } -} - - -vhTemplate EasyRailsWithSuEXEC { - templateFile conf/templates/rails.conf - listeners HTTP -} diff --git a/config/litespeed/1.6.4/conf/httpd_config.conf.bak b/config/litespeed/1.6.4/conf/httpd_config.conf.bak deleted file mode 100644 index 91533a5..0000000 --- a/config/litespeed/1.6.4/conf/httpd_config.conf.bak +++ /dev/null @@ -1,250 +0,0 @@ -# -# PLAIN TEXT CONFIGURATION FILE -# - -#It not set, will use host name as serverName -serverName -user nobody -group nogroup -priority 0 -autoRestart 1 -chrootPath / -enableChroot 0 -inMemBufSize 60M -swappingDir /tmp/lshttpd/swap -autoFix503 1 -gracefulRestartTimeout 300 -mime conf/mime.properties -showVersionNumber 0 -adminEmails root@localhost -indexFiles index.html, index.php -disableWebAdmin 0 - -errorlog logs/error.log { - logLevel DEBUG - debugLevel 0 - rollingSize 10M - enableStderrLog 1 -} - -accessLog logs/access.log { - rollingSize 10M - keepDays 30 - compressArchive 0 - logReferer 1 - logUserAgent 1 -} - -expires { - enableExpires 1 - expiresByType image/*=A604800,text/css=A604800,application/x-javascript=A604800,application/javascript=A604800,font/*=A604800,application/x-font-ttf=A604800 -} - -tuning{ - maxConnections 10000 - maxSSLConnections 10000 - connTimeout 300 - maxKeepAliveReq 10000 - smartKeepAlive 0 - keepAliveTimeout 5 - sndBufSize 0 - rcvBufSize 0 - gzipStaticCompressLevel 6 - gzipMaxFileSize 10M - eventDispatcher best - maxCachedFileSize 4096 - totalInMemCacheSize 20M - maxMMapFileSize 256K - totalMMapCacheSize 40M - useSendfile 1 - fileETag 28 - SSLCryptoDevice null - maxReqURLLen 32768 - maxReqHeaderSize 65536 - maxReqBodySize 2047M - maxDynRespHeaderSize 32768 - maxDynRespSize 2047M - enableGzipCompress 1 - enableBrCompress 4 - enableDynGzipCompress 1 - gzipCompressLevel 6 - brStaticCompressLevel 6 - compressibleTypes text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml,application/rss+xml - gzipAutoUpdateStatic 1 - gzipMinFileSize 300 -} - -accessDenyDir{ - dir / - dir /etc/* - dir /dev/* - dir conf/* - dir admin/conf/* -} - -fileAccessControl{ - followSymbolLink 1 - checkSymbolLink 0 - requiredPermissionMask 000 - restrictedPermissionMask 000 -} - -perClientConnLimit{ - staticReqPerSec 0 - dynReqPerSec 0 - outBandwidth 0 - inBandwidth 0 - softLimit 10000 - hardLimit 10000 - gracePeriod 15 - banPeriod 300 -} - -CGIRLimit{ - maxCGIInstances 20 - minUID 11 - minGID 10 - priority 0 - CPUSoftLimit 10 - CPUHardLimit 50 - memSoftLimit 1460M - memHardLimit 1470M - procSoftLimit 400 - procHardLimit 450 -} - -accessControl{ - allow ALL - deny -} - -extProcessor lsphp{ - type lsapi - address uds://tmp/lshttpd/lsphp.sock - maxConns 10 - env PHP_LSAPI_CHILDREN=10 - env LSAPI_AVOID_FORK=200M - initTimeout 60 - retryTimeout 0 - persistConn 1 - pcKeepAliveTimeout - respBuffer 0 - autoStart 1 - path fcgi-bin/lsphp - backlog 100 - instances 1 - priority 0 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 1400 - procHardLimit 1500 -} - -scriptHandler{ - add lsapi:lsphp php -} - -railsDefaults{ - binPath - railsEnv 1 - maxConns 1 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -wsgiDefaults{ - binPath - railsEnv 1 - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -nodeDefaults{ - binPath - railsEnv 1 - maxConns 5 - env LSAPI_MAX_IDLE=60 - initTimeout 60 - retryTimeout 0 - pcKeepAliveTimeout 60 - respBuffer 0 - backlog 50 - runOnStartUp 3 - extMaxIdleTime 300 - priority 3 - memSoftLimit 2047M - memHardLimit 2047M - procSoftLimit 500 - procHardLimit 600 -} - -virtualHost Example{ - vhRoot Example/ - allowSymbolLink 1 - enableScript 1 - restrained 1 - maxKeepAliveReq - smartKeepAlive - setUIDMode 0 - chrootMode 0 - configFile conf/vhosts/Example/vhconf.conf -} - -listener Default{ - address *:8088 - secure 0 - map Example * -} - -vhTemplate centralConfigLog{ - templateFile conf/templates/ccl.conf - listeners Default -} - -vhTemplate EasyRailsWithSuEXEC{ - templateFile conf/templates/rails.conf - listeners Default -} - -module cache { - ls_enabled 1 - - checkPrivateCache 1 - checkPublicCache 1 - maxCacheObjSize 10000000 - maxStaleAge 200 - qsCache 1 - reqCookieCache 1 - respCookieCache 1 - ignoreReqCacheCtrl 1 - ignoreRespCacheCtrl 0 - - enableCache 0 - expireInSeconds 3600 - enablePrivateCache 0 - privateExpireInSeconds 3600 - -} diff --git a/config/litespeed/1.6.4/conf/mime.properties b/config/litespeed/1.6.4/conf/mime.properties deleted file mode 100644 index fa55ee8..0000000 --- a/config/litespeed/1.6.4/conf/mime.properties +++ /dev/null @@ -1,162 +0,0 @@ -default = application/octet-stream -3gp = video/3gpp -3g2 = video/3gpp2 -ai, eps = application/postscript -aif, aifc, aiff = audio/x-aiff -asc = text/plain -asf = video/asf -asx = video/x-ms-asf -au = audio/basic -avi = video/x-msvideo -bcpio = application/x-bcpio -bmp = image/bmp -bin = application/octet-stream -bz, bz2 = application/x-bzip -cdf = application/x-netcdf -class = application/java-vm -cpio = application/x-cpio -cpt = application/mac-compactpro -crt = application/x-x509-ca-cert -csh = application/x-csh -css = text/css -dcr,dir, dxr = application/x-director -dms = application/octet-stream -doc = application/msword -dtd = application/xml-dtd -dvi = application/x-dvi -eot = application/vnd.ms-fontobject -etx = text/x-setext -exe = application/x-executable -ez = application/andrew-inset -flv = video/x-flv -gif = image/gif -gtar = application/x-gtar -gz, gzip = application/gzip -hdf = application/x-hdf -hqx = application/mac-binhex40 -htc = text/x-component -html, htm = text/html -ice = x-conference/x-cooltalk -ico = image/x-icon -ief = image/ief -iges, igs = model/iges -iso = application/x-cd-image -java = text/plain -jar = application/java-archive -jnlp = application/x-java-jnlp-file -jpeg, jpe, jpg = image/jpeg -js = application/x-javascript -js2 = application/javascript -js3 = text/javascript -json = application/json -jsp = text/plain -kar = audio/midi -latex = application/x-latex -lha, lzh = application/octet-stream -man = application/x-troff-man -mdb = application/vnd.ms-access -me = application/x-troff-me -mesh = model/mesh -mid, midi = audio/midi -mif = application/vnd.mif -movie = video/x-sgi-movie -mov = video/quicktime -mp2, mp3, mpga = audio/mpeg -mpeg, mpe, mpg = video/mpeg -mp4 = video/mp4 -mpp = application/vnd.ms-project -ms = application/x-troff-ms -msh = model/mesh -nc = application/x-netcdf -oda = application/oda -odb = application/vnd.oasis.opendocument.database -odc = application/vnd.oasis.opendocument.chart -odf = application/vnd.oasis.opendocument.formula -odg = application/vnd.oasis.opendocument.graphics -odi = application/vnd.oasis.opendocument.image -odp = application/vnd.oasis.opendocument.presentation -ods = application/vnd.oasis.opendocument.spreadsheet -odt = application/vnd.oasis.opendocument.text -ogg = audio/ogg -otf = application/x-font-woff -pbm = image/x-portable-bitmap -pdb = chemical/x-pdb -pdf = application/pdf -pgm = image/x-portable-graymap -pgn = application/x-chess-pgn -pls = audio/x-scpls -png = image/png -pnm = image/x-portable-anymap -ppm = image/x-portable-pixmap -ppt = application/vnd.ms-powerpoint -ps = application/postscript -qt,qtvr = video/quicktime -ra = audio/x-realaudio -ram, rm = audio/x-pn-realaudio -rar = application/x-rar-compressed -ras = image/x-cmu-raster -rgb = image/x-rgb -roff, t, tr = application/x-troff -rss = application/rss+xml -rsd = application/rsd+xml -rtf = application/rtf -rtx = text/richtext -ser = application/java-serialized-object -sgml, sgm = text/sgml -sh = application/x-sh -shar = application/x-shar -shtml = application/x-httpd-shtml -silo = model/mesh -sit = application/x-stuffit -skd, skm, skp, skt = application/x-koan -smi,smil = application/smil -snd = audio/basic -spl = application/x-futuresplash -sql = text/x-sql -src = application/x-wais-source -sv4cpio = application/x-sv4cpio -sv4crc = application/x-sv4crc -svg, svgz = image/svg+xml -swf = application/x-shockwave-flash -tar = application/x-tar -tcl = application/x-tcl -tex = application/x-tex -texi, texinfo = application/x-texinfo -tgz = application/x-gtar -tiff, tif = image/tiff -tsv = text/tab-separated-values -ttf, ttc = application/x-font-ttf -txt = text/plain -ustar = application/x-ustar -vcd = application/x-cdlink -vrml = model/vrml -vxml = application/voicexml+xml -wav = audio/vnd.wave -wax = audio/x-ms-wax -wbmp = image/vnd.wap.wbmp -webp = image/webp -wma = audio/x-ms-wma -wml = text/vnd.wap.wml -wmlc = application/vnd.wap.wmlc -wmls = text/vnd.wap.wmlscript -wmlsc = application/vnd.wap.wmlscriptc -woff = application/font-woff -woff2 = font/woff2 -woff3 = font/woff -woff4 = application/font-woff2 -ttf2 = font/ttf -woff_o1 = application/x-font-woff -wtls-ca-certificate = application/vnd.wap.wtls-ca-certificate -wri = application/vnd.ms-write -wrl = model/vrml -xbm = image/x-xbitmap -xhtml, xht = application/xhtml+xml -xls = application/vnd.ms-excel -xml, xsd, xsl = application/xml -xml2 = text/xml -xslt = application/xslt+xml -xpm = image/x-xpixmap -xwd = image/x-xwindowdump -xyz = chemical/x-pdb -zip = application/zip -z = application/compress diff --git a/config/litespeed/1.6.4/conf/templates/ccl.conf b/config/litespeed/1.6.4/conf/templates/ccl.conf deleted file mode 100644 index 8ed9f7e..0000000 --- a/config/litespeed/1.6.4/conf/templates/ccl.conf +++ /dev/null @@ -1,84 +0,0 @@ -allowSymbolLink 1 -chrootMode 0 -enableScript 1 -restrained 1 -setUIDMode 0 -vhRoot $SERVER_ROOT/$VH_NAME/ -configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf - -virtualHostConfig { - enableGzip 1 - docRoot $VH_ROOT/html/ - - hotlinkCtrl { - allowedHosts - enableHotlinkCtrl 0 - suffixes gif, jpeg, jpg - allowDirectAccess 1 - redirectUri - onlySelf 1 - } - - general { - enableContextAC 0 - } - - expires { - expiresDefault - enableExpires 1 - } - - rewrite { - enable 0 - logLevel 0 - } - - index { - useServer 0 - autoIndex 0 - indexFiles index.html - autoIndexURI /_autoindex/default.php - } - - accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{ - useServer 0 - keepDays 30 - rollingSize 100M - compressArchive 1 - logUserAgent 1 - logReferer 1 - } - - errorlog { - useServer 1 - } - - context /cgi-bin/{ - type cgi - location $VH_ROOT/cgi-bin/ - allowBrowse 1 - } - - context / { - allowBrowse 1 - location $DOC_ROOT/ - rewrite { - RewriteFile .htaccess - } - } - - awstats { - updateMode 0 - siteAliases 127.0.0.1 localhost - updateInterval 86400 - updateOffset 0 - siteDomain localhost - workingDir $VH_ROOT/awstats - awstatsURI /awstats/ - } - - accessControl { - deny - allow * - } -} diff --git a/config/litespeed/1.6.4/conf/templates/phpsuexec.conf b/config/litespeed/1.6.4/conf/templates/phpsuexec.conf deleted file mode 100644 index b5d9e27..0000000 --- a/config/litespeed/1.6.4/conf/templates/phpsuexec.conf +++ /dev/null @@ -1,103 +0,0 @@ -allowSymbolLink 1 -chrootMode 0 -enableScript 1 -restrained 1 -setUIDMode 2 -vhRoot $SERVER_ROOT/$VH_NAME/ -configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf - -virtualHostConfig { - enableGzip 1 - docRoot $VH_ROOT/public_html/ - - rewrite { - enable 0 - logLevel 0 - } - - awstats { - updateMode 0 - workingDir $VH_ROOT/awstats - awstatsURI /awstats/ - siteDomain localhost - siteAliases 127.0.0.1 localhost - updateInterval 86400 - updateOffset 0 - securedConn 0 - } - - extProcessor $VH_NAME_lsphp{ - path $SERVER_ROOT/fcgi-bin/lsphp - backlog 10 - instances 5 - runOnStartUp 0 - respBuffer 0 - autoStart 1 - extMaxIdleTime 60 - priority 0 - memSoftLimit 100M - memHardLimit 150M - procSoftLimit 100 - procHardLimit 200 - type lsapi - address uds://tmp/lshttpd/$VH_NAME_lsphp.sock - maxConns 5 - initTimeout 60 - retryTimeout 0 - persistConn 1 - pcKeepAliveTimeout 30 - } - - index { - useServer 0 - autoIndex 0 - autoIndexURI /_autoindex/default.php - indexFiles index.html - } - - accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{ - keepDays 30 - rollingSize 100M - compressArchive 1 - useServer 0 - logHeaders 3 - } - - errorlog { - useServer 1 - } - - hotlinkCtrl { - enableHotlinkCtrl 0 - suffixes gif, jpeg, jpg - allowDirectAccess 1 - onlySelf 1 - } - - accessControl { - allow * - } - - scriptHandler { - add lsapi:$VH_NAME_lsphp php - } - - expires { - enableExpires 1 - } - - context /cgi-bin/{ - type cgi - location $VH_ROOT/cgi-bin/ - accessControl - rewrite - } - - context / { - allowBrowse 1 - location $DOC_ROOT/ - rewrite { - RewriteFile .htaccess - } - } -} diff --git a/config/litespeed/1.6.4/conf/templates/rails.conf b/config/litespeed/1.6.4/conf/templates/rails.conf deleted file mode 100644 index e6a2fd3..0000000 --- a/config/litespeed/1.6.4/conf/templates/rails.conf +++ /dev/null @@ -1,74 +0,0 @@ -allowSymbolLink 1 -chrootMode 0 -enableScript 1 -restrained 1 -setUIDMode 2 -vhRoot $SERVER_ROOT/$VH_NAME/ -configFile $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf - -virtualHostConfig { - enableGzip 1 - docRoot $VH_ROOT/public/ - - accessControl { - allow * - } - - hotlinkCtrl { - suffixes gif, jpeg, jpg - allowDirectAccess 1 - onlySelf 1 - enableHotlinkCtrl 0 - } - - rewrite { - enable 0 - logLevel 0 - } - - index { - useServer 0 - autoIndex 0 - indexFiles index.html - autoIndexURI /_autoindex/default.php - } - - accessLog $SERVER_ROOT/logs/$VH_NAME.access.log{ - logHeaders 3 - compressArchive 0 - useServer 0 - keepDays 30 - rollingSize 500M - } - - errorlog { - useServer 1 - } - - context / { - railsEnv 1 - maxConns 5 - location $VH_ROOT/ - type rails - accessControl - addDefaultCharset off - rewrite { - RewriteFile .htaccess - } - } - - expires { - enableExpires 1 - } - - awstats { - workingDir $VH_ROOT/awstats - awstatsURI /awstats/ - siteDomain localhost - siteAliases 127.0.0.1 localhost - updateMode 0 - updateInterval 86400 - updateOffset 0 - securedConn 0 - } -} diff --git a/config/litespeed/1.6.4/conf/vhosts/.DS_Store b/config/litespeed/1.6.4/conf/vhosts/.DS_Store deleted file mode 100644 index 4c26f3708aa3fb726e8adc5b8d92077ced7da2b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5EC}5S)cbL`svA(pTUHR+O9|7YHGA4+RM!QND_EakR{SibM~(P=IEo_1Nnj zTb|zdhI4K|n{=NeKeQ0#YUN|Pkr-MVZ0K^%?VVp-V zL2Mo%_QEld5t=2Hm{hA4!;;Q;tGr$~CMF$L&4<;^Rvn7P?L5ClI; /dev/null; then - break - fi - sleep 60 -done - diff --git a/docker-compose.yml b/docker-compose.yml index f22b40f..26a8f57 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,12 +13,12 @@ services: MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} litespeed: - build: - context: ./config/litespeed/${LITESPEED}/ - args: + #build: + # context: ./config/litespeed/${LITESPEED}/ + # args: #extensions: lsphp72 lsphp72-common lsphp72-mysql lsphp72-json - extensions: vim - image: litespeedtech/openlitespeed-beta:${LITESPEED} + # extensions: vim + image: litespeedtech/openlitespeed-beta:${OLS_VERSION}-${PHP_VERSION} env_file: - .env volumes: