@wocker/ws 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +155 -0
- package/bin/ws.js +13 -0
- package/lib/App.d.ts +13 -0
- package/lib/App.js +52 -0
- package/lib/controllers/ImageController.d.ts +8 -0
- package/lib/controllers/ImageController.js +29 -0
- package/lib/controllers/ProjectController.d.ts +64 -0
- package/lib/controllers/ProjectController.js +561 -0
- package/lib/controllers/index.d.ts +2 -0
- package/lib/controllers/index.js +27 -0
- package/lib/env.d.ts +7 -0
- package/lib/env.js +24 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +31 -0
- package/lib/makes/Controller.d.ts +5 -0
- package/lib/makes/Controller.js +12 -0
- package/lib/makes/Docker.d.ts +58 -0
- package/lib/makes/Docker.js +418 -0
- package/lib/makes/FS.d.ts +37 -0
- package/lib/makes/FS.js +317 -0
- package/lib/makes/LineConvertStream.d.ts +13 -0
- package/lib/makes/LineConvertStream.js +45 -0
- package/lib/makes/Logger.d.ts +7 -0
- package/lib/makes/Logger.js +39 -0
- package/lib/makes/Model.d.ts +5 -0
- package/lib/makes/Model.js +16 -0
- package/lib/makes/MySQL.d.ts +15 -0
- package/lib/makes/MySQL.js +31 -0
- package/lib/makes/Plugin.d.ts +13 -0
- package/lib/makes/Plugin.js +43 -0
- package/lib/makes/Repository.d.ts +11 -0
- package/lib/makes/Repository.js +25 -0
- package/lib/makes/index.d.ts +6 -0
- package/lib/makes/index.js +71 -0
- package/lib/models/Preset.d.ts +19 -0
- package/lib/models/Preset.js +60 -0
- package/lib/models/Project.d.ts +38 -0
- package/lib/models/Project.js +151 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.js +27 -0
- package/lib/plugins/LocaltunnelPlugin.d.ts +36 -0
- package/lib/plugins/LocaltunnelPlugin.js +273 -0
- package/lib/plugins/MaildevPlugin.d.ts +10 -0
- package/lib/plugins/MaildevPlugin.js +45 -0
- package/lib/plugins/MariadbPlugin.d.ts +25 -0
- package/lib/plugins/MariadbPlugin.js +297 -0
- package/lib/plugins/MongodbPlugin.d.ts +20 -0
- package/lib/plugins/MongodbPlugin.js +271 -0
- package/lib/plugins/NgrokPlugin.d.ts +37 -0
- package/lib/plugins/NgrokPlugin.js +248 -0
- package/lib/plugins/PageKitePlugin.d.ts +31 -0
- package/lib/plugins/PageKitePlugin.js +158 -0
- package/lib/plugins/PostgresPlugin.d.ts +16 -0
- package/lib/plugins/PostgresPlugin.js +94 -0
- package/lib/plugins/PresetPlugin.d.ts +19 -0
- package/lib/plugins/PresetPlugin.js +164 -0
- package/lib/plugins/ProjectPlugin.d.ts +12 -0
- package/lib/plugins/ProjectPlugin.js +54 -0
- package/lib/plugins/ProxmoxPlugin.d.ts +9 -0
- package/lib/plugins/ProxmoxPlugin.js +55 -0
- package/lib/plugins/ProxyPlugin.d.ts +33 -0
- package/lib/plugins/ProxyPlugin.js +257 -0
- package/lib/plugins/RedisPlugin.d.ts +10 -0
- package/lib/plugins/RedisPlugin.js +42 -0
- package/lib/plugins/ServeoPlugin.d.ts +36 -0
- package/lib/plugins/ServeoPlugin.js +260 -0
- package/lib/plugins/TestPlugin.d.ts +10 -0
- package/lib/plugins/TestPlugin.js +75 -0
- package/lib/plugins/index.d.ts +14 -0
- package/lib/plugins/index.js +159 -0
- package/lib/services/AppConfigService.d.ts +18 -0
- package/lib/services/AppConfigService.js +77 -0
- package/lib/services/AppEventsService.d.ts +13 -0
- package/lib/services/AppEventsService.js +29 -0
- package/lib/services/ProjectService.d.ts +13 -0
- package/lib/services/ProjectService.js +91 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.js +38 -0
- package/lib/types/Config.d.ts +11 -0
- package/lib/types/Config.js +5 -0
- package/lib/types/EnvConfig.d.ts +3 -0
- package/lib/types/EnvConfig.js +5 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +27 -0
- package/lib/utils/buildOptions.d.ts +1 -0
- package/lib/utils/buildOptions.js +12 -0
- package/lib/utils/demuxOutput.d.ts +2 -0
- package/lib/utils/demuxOutput.js +25 -0
- package/lib/utils/escapeRegExp.d.ts +2 -0
- package/lib/utils/escapeRegExp.js +10 -0
- package/lib/utils/exec.d.ts +2 -0
- package/lib/utils/exec.js +44 -0
- package/lib/utils/fetch.d.ts +5 -0
- package/lib/utils/fetch.js +37 -0
- package/lib/utils/followProgress.d.ts +6 -0
- package/lib/utils/followProgress.js +80 -0
- package/lib/utils/format-size-units.d.ts +1 -0
- package/lib/utils/format-size-units.js +19 -0
- package/lib/utils/get-config.d.ts +2 -0
- package/lib/utils/get-config.js +20 -0
- package/lib/utils/get-cursor-position.d.ts +4 -0
- package/lib/utils/get-cursor-position.js +34 -0
- package/lib/utils/image-build.d.ts +13 -0
- package/lib/utils/image-build.js +34 -0
- package/lib/utils/index.d.ts +21 -0
- package/lib/utils/index.js +236 -0
- package/lib/utils/injectVariables.d.ts +5 -0
- package/lib/utils/injectVariables.js +17 -0
- package/lib/utils/parse-table.d.ts +2 -0
- package/lib/utils/parse-table.js +27 -0
- package/lib/utils/promptConfirm.d.ts +6 -0
- package/lib/utils/promptConfirm.js +21 -0
- package/lib/utils/promptGroup.d.ts +16 -0
- package/lib/utils/promptGroup.js +39 -0
- package/lib/utils/promptSelect.d.ts +12 -0
- package/lib/utils/promptSelect.js +47 -0
- package/lib/utils/promptText.d.ts +13 -0
- package/lib/utils/promptText.js +53 -0
- package/lib/utils/set-config.d.ts +2 -0
- package/lib/utils/set-config.js +18 -0
- package/lib/utils/spawn.d.ts +2 -0
- package/lib/utils/spawn.js +24 -0
- package/lib/utils/tty.d.ts +2 -0
- package/lib/utils/tty.js +10 -0
- package/lib/utils/volumeFormat.d.ts +6 -0
- package/lib/utils/volumeFormat.js +15 -0
- package/lib/utils/volumeParse.d.ts +2 -0
- package/lib/utils/volumeParse.js +16 -0
- package/package.json +90 -0
- package/plugins/localtunnel/Dockerfile +37 -0
- package/plugins/localtunnel/Ubuntu.dockerfile +34 -0
- package/plugins/localtunnel/config.json +3 -0
- package/plugins/maildev/Dockerfile +5 -0
- package/plugins/maildev/config.json +3 -0
- package/plugins/mariadb/admin/conf/config.user.inc.php +9 -0
- package/plugins/ngrok/Dockerfile +2 -0
- package/plugins/pagekite/Dockerfile +3 -0
- package/plugins/proxmox/Dockerfile +35 -0
- package/plugins/proxy/Dockerfile +7 -0
- package/plugins/proxy/config.json +3 -0
- package/plugins/serveo/Dockerfile +17 -0
- package/presets/apache/.docker/apache2/apache2.conf +230 -0
- package/presets/apache/.docker/apache2/mods-available/mpm_prefork.conf +16 -0
- package/presets/apache/.docker/apache2/sites-available/000-default.conf.conf +21 -0
- package/presets/apache/Dockerfile +110 -0
- package/presets/apache/bin/compare-version +3 -0
- package/presets/apache/config.json +47 -0
- package/presets/go/Dockerfile +19 -0
- package/presets/go/config.json +13 -0
- package/presets/node/Dockerfile +37 -0
- package/presets/node/config.json +36 -0
- package/presets/php-apache/Dockerfile +133 -0
- package/presets/php-apache/bin/compare-version +3 -0
- package/presets/php-apache/config.json +56 -0
- package/presets/php-apache/etc/apache2/apache2.conf +230 -0
- package/presets/php-apache/etc/apache2/mods-available/mpm_prefork.conf +16 -0
- package/presets/php-apache/etc/apache2/sites-available/000-default.conf +21 -0
- package/presets/shopify/Dockerfile +160 -0
- package/presets/shopify/bin/compare-version +3 -0
- package/presets/shopify/config.json +24 -0
- package/presets/shopify/etc/apache2/apache2.conf +230 -0
- package/presets/shopify/etc/apache2/mods-available/mpm_prefork.conf +16 -0
- package/presets/shopify/etc/apache2/sites-available/000-default.conf +21 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dockerfile": "./Dockerfile",
|
|
3
|
+
"buildArgsOptions": {
|
|
4
|
+
"PHP_VERSION": {
|
|
5
|
+
"hash": false,
|
|
6
|
+
"message": "PHP version",
|
|
7
|
+
"type": "select",
|
|
8
|
+
"options": [
|
|
9
|
+
"5.6",
|
|
10
|
+
"7.3",
|
|
11
|
+
"7.4",
|
|
12
|
+
"8.0"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"MYSQLI_ENABLE": {
|
|
16
|
+
"message": "Enable mysqli?",
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
"PDO_MYSQL_ENABLE": {
|
|
20
|
+
"message": "Enable PDO Mysql?",
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"GD_ENABLE": {
|
|
24
|
+
"message": "Enable GD?",
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"COMPOSER_ENABLE": {
|
|
28
|
+
"message": "Install composer?",
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"ZIP_ENABLE": {
|
|
32
|
+
"message": "Enable zip?",
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"NODE_VERSION": {
|
|
36
|
+
"type": "select",
|
|
37
|
+
"message": "Node version",
|
|
38
|
+
"options": [
|
|
39
|
+
"none",
|
|
40
|
+
"v17.9.1"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"volumes": [
|
|
45
|
+
"./:/var/www/html"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
FROM golang:latest
|
|
2
|
+
|
|
3
|
+
ENV GO_RUN "go run main.go"
|
|
4
|
+
|
|
5
|
+
WORKDIR /usr/app
|
|
6
|
+
|
|
7
|
+
# -----
|
|
8
|
+
RUN apt-get update
|
|
9
|
+
RUN apt-get install -y \
|
|
10
|
+
xvfb \
|
|
11
|
+
libfontconfig \
|
|
12
|
+
wkhtmltopdf
|
|
13
|
+
# -----
|
|
14
|
+
|
|
15
|
+
EXPOSE 80
|
|
16
|
+
|
|
17
|
+
CMD go mod download && \
|
|
18
|
+
# go get github.com/loov/watchrun && \
|
|
19
|
+
${GO_RUN}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
ARG NODE_VERSION
|
|
2
|
+
ARG PACKAGE_MANAGER
|
|
3
|
+
|
|
4
|
+
FROM node:${NODE_VERSION}
|
|
5
|
+
|
|
6
|
+
ENV TZ=America/Los_Angeles
|
|
7
|
+
ENV APP_PORT 80
|
|
8
|
+
ENV PORT=$APP_PORT
|
|
9
|
+
ENV NPM_RUN 'npm start'
|
|
10
|
+
ENV PACKAGE_MANAGER "npm"
|
|
11
|
+
|
|
12
|
+
RUN ip r l
|
|
13
|
+
|
|
14
|
+
RUN apk add tcpdump iproute2 iptables
|
|
15
|
+
|
|
16
|
+
#RUN echo "1 test" >> /etc/iproute2/rt_tables
|
|
17
|
+
#RUN ip rule add from 10.8.0.2 table test
|
|
18
|
+
|
|
19
|
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
20
|
+
RUN apk --update --no-cache add busybox-extras
|
|
21
|
+
RUN apk add --no-cache bash
|
|
22
|
+
|
|
23
|
+
VOLUME ["/usr/app"]
|
|
24
|
+
|
|
25
|
+
WORKDIR /usr/app
|
|
26
|
+
|
|
27
|
+
EXPOSE 80
|
|
28
|
+
|
|
29
|
+
#CMD npm install && \
|
|
30
|
+
# ${NPM_RUN}
|
|
31
|
+
|
|
32
|
+
CMD if [ "$PACKAGE_MANAGER" = "npm" ]; then \
|
|
33
|
+
npm install --quiet --no-progress; \
|
|
34
|
+
else \
|
|
35
|
+
yarn install --silent; \
|
|
36
|
+
fi && \
|
|
37
|
+
${NPM_RUN}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dockerfile": "./Dockerfile",
|
|
3
|
+
"DocumentRoot": "/usr/app",
|
|
4
|
+
"buildArgs": {
|
|
5
|
+
"NODE_VERSION": {
|
|
6
|
+
"type": "select",
|
|
7
|
+
"select": [
|
|
8
|
+
"11-alpine3.14",
|
|
9
|
+
"12-alpine3.14",
|
|
10
|
+
"14-alpine3.14",
|
|
11
|
+
"16-alpine3.14",
|
|
12
|
+
"17-alpine3.14"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"env": {
|
|
17
|
+
"APP_PORT": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"default": 80
|
|
20
|
+
},
|
|
21
|
+
"NPM_RUN": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"default": "npm start"
|
|
24
|
+
},
|
|
25
|
+
"PACKAGE_MANAGER": {
|
|
26
|
+
"type": "select",
|
|
27
|
+
"select": [
|
|
28
|
+
"npm",
|
|
29
|
+
"yarn"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"volumes": [
|
|
34
|
+
"./:/usr/app"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
ARG PHP_VERSION
|
|
2
|
+
|
|
3
|
+
FROM php:${PHP_VERSION}-apache
|
|
4
|
+
|
|
5
|
+
ARG UID=1000
|
|
6
|
+
ARG USER=user
|
|
7
|
+
|
|
8
|
+
RUN useradd -G root,www-data -u $UID -d /home/$USER $USER && \
|
|
9
|
+
mkdir -p /home/$USER && \
|
|
10
|
+
touch /home/$USER/.bashrc && \
|
|
11
|
+
chown -R $USER:$USER /home/$USER
|
|
12
|
+
|
|
13
|
+
# WS Tools
|
|
14
|
+
ADD ./bin/compare-version /usr/local/bin/compare-version
|
|
15
|
+
RUN chmod +x /usr/local/bin/compare-version
|
|
16
|
+
|
|
17
|
+
RUN apt-get update --fix-missing -y
|
|
18
|
+
#RUN apt-get upgrade
|
|
19
|
+
RUN apt-get install -y curl git
|
|
20
|
+
|
|
21
|
+
#RUN apt-get install -y \
|
|
22
|
+
# build-essential \
|
|
23
|
+
# libssl-dev \
|
|
24
|
+
# zlib1g-dev
|
|
25
|
+
|
|
26
|
+
RUN a2enmod rewrite
|
|
27
|
+
RUN a2enmod headers
|
|
28
|
+
|
|
29
|
+
# Git
|
|
30
|
+
#RUN apt-get install -y git
|
|
31
|
+
|
|
32
|
+
# Mysqli
|
|
33
|
+
ARG MYSQLI_ENABLE=true
|
|
34
|
+
RUN if [ "$MYSQLI_ENABLE" = "true" ]; then \
|
|
35
|
+
docker-php-ext-install -j "$(nproc)" mysqli && \
|
|
36
|
+
docker-php-ext-enable mysqli; \
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
# pdo
|
|
40
|
+
ARG PDO_MYSQL_ENABLE=true
|
|
41
|
+
RUN if [ "$PDO_ENABLE" = "true" ]; then \
|
|
42
|
+
docker-php-ext-install pdo pdo_mysql && \
|
|
43
|
+
docker-php-ext-enable pdo_mysql; \
|
|
44
|
+
fi
|
|
45
|
+
|
|
46
|
+
#gd
|
|
47
|
+
ARG GD_ENABLE=false
|
|
48
|
+
RUN if [ "$GD_ENABLE" = "true" ]; then \
|
|
49
|
+
apt-get update && apt-get install -y \
|
|
50
|
+
libfreetype6-dev \
|
|
51
|
+
libjpeg62-turbo-dev \
|
|
52
|
+
libpng-dev && \
|
|
53
|
+
compare-version $PHP_VERSION "7.3" && \
|
|
54
|
+
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include || \
|
|
55
|
+
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
|
56
|
+
docker-php-ext-install -j$(nproc) gd && \
|
|
57
|
+
docker-php-ext-install exif; \
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
#RUN compare-version $PHP_VERSION "7.3" && \
|
|
61
|
+
# docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include || \
|
|
62
|
+
# docker-php-ext-configure gd --with-freetype --with-jpeg
|
|
63
|
+
|
|
64
|
+
#RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
|
65
|
+
#RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
|
|
66
|
+
#RUN docker-php-ext-install gd
|
|
67
|
+
|
|
68
|
+
# Zip
|
|
69
|
+
ARG ZIP_ENABLE=false
|
|
70
|
+
RUN if [ "$ZIP_ENABLE" = "true" ]; then \
|
|
71
|
+
apt-get install -y \
|
|
72
|
+
libzip-dev \
|
|
73
|
+
zip && \
|
|
74
|
+
docker-php-ext-configure zip && \
|
|
75
|
+
docker-php-ext-install -j "$(nproc)" zip; \
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
#RUN compare-version $PHP_VERSION "7.3" && \
|
|
79
|
+
# docker-php-ext-configure zip || \
|
|
80
|
+
# docker-php-ext-configure zip --with-libzip
|
|
81
|
+
|
|
82
|
+
ADD ./etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf
|
|
83
|
+
ADD ./etc/apache2/apache2.conf /etc/apache2/apache2.conf
|
|
84
|
+
COPY ./etc/apache2/mods-available/mpm_prefork.conf /etc/apache2/mods-available/
|
|
85
|
+
|
|
86
|
+
#RUN touch /usr/local/etc/php/conf.d/mail.ini && \
|
|
87
|
+
# echo "SMTP = maildev.workspace" >> /usr/local/etc/php/conf.d/mail.ini && \
|
|
88
|
+
# echo "smtp_port = 25" >> /usr/local/etc/php/conf.d/mail.ini
|
|
89
|
+
|
|
90
|
+
#RUN touch /usr/local/etc/php/conf.d/uploads.ini && \
|
|
91
|
+
# echo "upload_max_filesize = 100M;" >> /usr/local/etc/php/conf.d/uploads.ini && \
|
|
92
|
+
# echo "post_max_size = 100M;" >> /usr/local/etc/php/conf.d/uploads.ini
|
|
93
|
+
|
|
94
|
+
#RUN touch /usr/local/etc/php/conf.d/memory.ini && \
|
|
95
|
+
# echo "memory_limit = 256M;" >> /usr/local/etc/php/conf.d/memory.ini
|
|
96
|
+
|
|
97
|
+
# Composer
|
|
98
|
+
ARG COMPOSER_ENABLE=false
|
|
99
|
+
|
|
100
|
+
SHELL ["/bin/bash", "-c"]
|
|
101
|
+
RUN if [ "$COMPOSER_ENABLE" = "true" ]; then \
|
|
102
|
+
apt-get update && \
|
|
103
|
+
apt-get install -y bash-completion; \
|
|
104
|
+
echo "source /etc/bash_completion" >> /home/$USER/.bashrc; \
|
|
105
|
+
mkdir -p /home/$USER/.composer; \
|
|
106
|
+
curl -sL https://getcomposer.org/installer | php && \
|
|
107
|
+
mv composer.phar /usr/local/bin/composer && \
|
|
108
|
+
chmod +x /usr/local/bin/composer; \
|
|
109
|
+
echo ". <(composer completion bash)" >> /home/$USER/.bashrc; \
|
|
110
|
+
fi
|
|
111
|
+
SHELL ["/bin/sh", "-c"]
|
|
112
|
+
|
|
113
|
+
USER $USER
|
|
114
|
+
|
|
115
|
+
# NodeJS
|
|
116
|
+
ARG NODE_VERSION=''
|
|
117
|
+
ENV NVM_DIR=/home/$USER/.nvm
|
|
118
|
+
|
|
119
|
+
RUN if [ "$NODE_VERSION" != "" ] && [ "$NODE_VERSION" != "none" ]; then \
|
|
120
|
+
mkdir -p $NVM_DIR; \
|
|
121
|
+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash; \
|
|
122
|
+
. "$NVM_DIR/nvm.sh" && \
|
|
123
|
+
nvm install $NODE_VERSION && \
|
|
124
|
+
nvm alias default $NODE_VERSION && \
|
|
125
|
+
nvm use default; \
|
|
126
|
+
echo "[ -n \"\$(command -v npm)\" ] && . <(npm completion)" >> /home/$USER/.bashrc; \
|
|
127
|
+
fi
|
|
128
|
+
|
|
129
|
+
ENV APACHE_DOCUMENT_ROOT /var/www
|
|
130
|
+
WORKDIR $APACHE_DOCUMENT_ROOT
|
|
131
|
+
|
|
132
|
+
EXPOSE 80
|
|
133
|
+
EXPOSE 443
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dockerfile": "./Dockerfile",
|
|
3
|
+
"buildArgsOptions": {
|
|
4
|
+
"PHP_VERSION": {
|
|
5
|
+
"message": "PHP version",
|
|
6
|
+
"type": "select",
|
|
7
|
+
"hash": false,
|
|
8
|
+
"options": [
|
|
9
|
+
"5.6",
|
|
10
|
+
"7.3",
|
|
11
|
+
"7.4",
|
|
12
|
+
"8.0",
|
|
13
|
+
"8.2"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"MYSQLI_ENABLE": {
|
|
17
|
+
"message": "Enable mysqli?",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"PDO_MYSQL_ENABLE": {
|
|
21
|
+
"message": "Enable PDO Mysql?",
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
24
|
+
"GD_ENABLE": {
|
|
25
|
+
"message": "Enable GD?",
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
},
|
|
28
|
+
"COMPOSER_ENABLE": {
|
|
29
|
+
"message": "Install composer?",
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"ZIP_ENABLE": {
|
|
33
|
+
"message": "Enable zip?",
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"NODE_VERSION": {
|
|
37
|
+
"type": "select",
|
|
38
|
+
"message": "Node version",
|
|
39
|
+
"options": [
|
|
40
|
+
"none",
|
|
41
|
+
"v17.9.1",
|
|
42
|
+
"v18.16.0"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"envOptions": {
|
|
47
|
+
"APACHE_DOCUMENT_ROOT": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"message": "Apache document root",
|
|
50
|
+
"default": "/var/www"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"volumeOptions": [
|
|
54
|
+
"./:/var/www"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# This is the main Apache server configuration file. It contains the
|
|
2
|
+
# configuration directives that give the server its instructions.
|
|
3
|
+
# See http://httpd.apache.org/docs/2.4/ for detailed information about
|
|
4
|
+
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
|
|
5
|
+
# hints.
|
|
6
|
+
#
|
|
7
|
+
#
|
|
8
|
+
# Summary of how the Apache 2 configuration works in Debian:
|
|
9
|
+
# The Apache 2 web server configuration in Debian is quite different to
|
|
10
|
+
# upstream's suggested way to configure the web server. This is because Debian's
|
|
11
|
+
# default Apache2 installation attempts to make adding and removing modules,
|
|
12
|
+
# virtual hosts, and extra configuration directives as flexible as possible, in
|
|
13
|
+
# order to make automating the changes and administering the server as easy as
|
|
14
|
+
# possible.
|
|
15
|
+
|
|
16
|
+
# It is split into several files forming the configuration hierarchy outlined
|
|
17
|
+
# below, all located in the /etc/apache2/ directory:
|
|
18
|
+
#
|
|
19
|
+
# /etc/apache2/
|
|
20
|
+
# |-- apache2.conf
|
|
21
|
+
# | `-- ports.conf
|
|
22
|
+
# |-- mods-enabled
|
|
23
|
+
# | |-- *.load
|
|
24
|
+
# | `-- *.conf
|
|
25
|
+
# |-- conf-enabled
|
|
26
|
+
# | `-- *.conf
|
|
27
|
+
# `-- sites-enabled
|
|
28
|
+
# `-- *.conf
|
|
29
|
+
#
|
|
30
|
+
#
|
|
31
|
+
# * apache2.conf is the main configuration file (this file). It puts the pieces
|
|
32
|
+
# together by including all remaining configuration files when starting up the
|
|
33
|
+
# web server.
|
|
34
|
+
#
|
|
35
|
+
# * ports.conf is always included from the main configuration file. It is
|
|
36
|
+
# supposed to determine listening ports for incoming connections which can be
|
|
37
|
+
# customized anytime.
|
|
38
|
+
#
|
|
39
|
+
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
|
|
40
|
+
# directories contain particular configuration snippets which manage modules,
|
|
41
|
+
# global configuration fragments, or virtual host configurations,
|
|
42
|
+
# respectively.
|
|
43
|
+
#
|
|
44
|
+
# They are activated by symlinking available configuration files from their
|
|
45
|
+
# respective *-available/ counterparts. These should be managed by using our
|
|
46
|
+
# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
|
|
47
|
+
# their respective man pages for detailed information.
|
|
48
|
+
#
|
|
49
|
+
# * The binary is called apache2. Due to the use of environment variables, in
|
|
50
|
+
# the default configuration, apache2 needs to be started/stopped with
|
|
51
|
+
# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
|
|
52
|
+
# work with the default configuration.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Global configuration
|
|
56
|
+
#
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# ServerRoot: The top of the directory tree under which the server's
|
|
60
|
+
# configuration, error, and log files are kept.
|
|
61
|
+
#
|
|
62
|
+
# NOTE! If you intend to place this on an NFS (or otherwise network)
|
|
63
|
+
# mounted filesystem then please read the Mutex documentation (available
|
|
64
|
+
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
|
|
65
|
+
# you will save yourself a lot of trouble.
|
|
66
|
+
#
|
|
67
|
+
# Do NOT add a slash at the end of the directory path.
|
|
68
|
+
#
|
|
69
|
+
#ServerRoot "/etc/apache2"
|
|
70
|
+
|
|
71
|
+
#
|
|
72
|
+
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
|
|
73
|
+
#
|
|
74
|
+
#Mutex file:${APACHE_LOCK_DIR} default
|
|
75
|
+
|
|
76
|
+
#
|
|
77
|
+
# The directory where shm and other runtime files will be stored.
|
|
78
|
+
#
|
|
79
|
+
|
|
80
|
+
DefaultRuntimeDir ${APACHE_RUN_DIR}
|
|
81
|
+
|
|
82
|
+
#
|
|
83
|
+
# PidFile: The file in which the server should record its process
|
|
84
|
+
# identification number when it starts.
|
|
85
|
+
# This needs to be set in /etc/apache2/envvars
|
|
86
|
+
#
|
|
87
|
+
PidFile ${APACHE_PID_FILE}
|
|
88
|
+
|
|
89
|
+
#
|
|
90
|
+
# Timeout: The number of seconds before receives and sends time out.
|
|
91
|
+
#
|
|
92
|
+
Timeout 300
|
|
93
|
+
|
|
94
|
+
#
|
|
95
|
+
# KeepAlive: Whether or not to allow persistent connections (more than
|
|
96
|
+
# one request per connection). Set to "Off" to deactivate.
|
|
97
|
+
#
|
|
98
|
+
KeepAlive On
|
|
99
|
+
|
|
100
|
+
#
|
|
101
|
+
# MaxKeepAliveRequests: The maximum number of requests to allow
|
|
102
|
+
# during a persistent connection. Set to 0 to allow an unlimited amount.
|
|
103
|
+
# We recommend you leave this number high, for maximum performance.
|
|
104
|
+
#
|
|
105
|
+
MaxKeepAliveRequests 100
|
|
106
|
+
|
|
107
|
+
#
|
|
108
|
+
# KeepAliveTimeout: Number of seconds to wait for the next request from the
|
|
109
|
+
# same client on the same connection.
|
|
110
|
+
#
|
|
111
|
+
KeepAliveTimeout 5
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# These need to be set in /etc/apache2/envvars
|
|
115
|
+
User ${APACHE_RUN_USER}
|
|
116
|
+
Group ${APACHE_RUN_GROUP}
|
|
117
|
+
|
|
118
|
+
#
|
|
119
|
+
# HostnameLookups: Log the names of clients or just their IP addresses
|
|
120
|
+
# e.g., www.apache.org (on) or 204.62.129.132 (off).
|
|
121
|
+
# The default is off because it'd be overall better for the net if people
|
|
122
|
+
# had to knowingly turn this feature on, since enabling it means that
|
|
123
|
+
# each client request will result in AT LEAST one lookup request to the
|
|
124
|
+
# nameserver.
|
|
125
|
+
#
|
|
126
|
+
HostnameLookups Off
|
|
127
|
+
|
|
128
|
+
# ErrorLog: The location of the error log file.
|
|
129
|
+
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
|
130
|
+
# container, error messages relating to that virtual host will be
|
|
131
|
+
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
|
132
|
+
# container, that host's errors will be logged there and not here.
|
|
133
|
+
#
|
|
134
|
+
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
135
|
+
|
|
136
|
+
#
|
|
137
|
+
# LogLevel: Control the severity of messages logged to the error_log.
|
|
138
|
+
# Available values: trace8, ..., trace1, debug, info, notice, warn,
|
|
139
|
+
# error, crit, alert, emerg.
|
|
140
|
+
# It is also possible to configure the log level for particular modules, e.g.
|
|
141
|
+
# "LogLevel info ssl:warn"
|
|
142
|
+
#
|
|
143
|
+
LogLevel warn
|
|
144
|
+
|
|
145
|
+
# Include module configuration:
|
|
146
|
+
IncludeOptional mods-enabled/*.load
|
|
147
|
+
IncludeOptional mods-enabled/*.conf
|
|
148
|
+
|
|
149
|
+
# Include list of ports to listen on
|
|
150
|
+
Include ports.conf
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
# Sets the default security model of the Apache2 HTTPD server. It does
|
|
154
|
+
# not allow access to the root filesystem outside of /usr/share and /var/www.
|
|
155
|
+
# The former is used by web applications packaged in Debian,
|
|
156
|
+
# the latter may be used for local directories served by the web server. If
|
|
157
|
+
# your system is serving content from a sub-directory in /srv you must allow
|
|
158
|
+
# access here, or in any related virtual host.
|
|
159
|
+
<Directory />
|
|
160
|
+
Options FollowSymLinks
|
|
161
|
+
AllowOverride None
|
|
162
|
+
Require all denied
|
|
163
|
+
</Directory>
|
|
164
|
+
|
|
165
|
+
<Directory /usr/share>
|
|
166
|
+
AllowOverride None
|
|
167
|
+
Require all granted
|
|
168
|
+
</Directory>
|
|
169
|
+
|
|
170
|
+
<Directory /var/www/>
|
|
171
|
+
Options Indexes FollowSymLinks
|
|
172
|
+
AllowOverride None
|
|
173
|
+
Require all granted
|
|
174
|
+
</Directory>
|
|
175
|
+
|
|
176
|
+
#<Directory /srv/>
|
|
177
|
+
# Options Indexes FollowSymLinks
|
|
178
|
+
# AllowOverride None
|
|
179
|
+
# Require all granted
|
|
180
|
+
#</Directory>
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
# AccessFileName: The name of the file to look for in each directory
|
|
186
|
+
# for additional configuration directives. See also the AllowOverride
|
|
187
|
+
# directive.
|
|
188
|
+
#
|
|
189
|
+
AccessFileName .htaccess
|
|
190
|
+
|
|
191
|
+
#
|
|
192
|
+
# The following lines prevent .htaccess and .htpasswd files from being
|
|
193
|
+
# viewed by Web clients.
|
|
194
|
+
#
|
|
195
|
+
<FilesMatch "^\.ht">
|
|
196
|
+
Require all denied
|
|
197
|
+
</FilesMatch>
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
#
|
|
201
|
+
# The following directives define some format nicknames for use with
|
|
202
|
+
# a CustomLog directive.
|
|
203
|
+
#
|
|
204
|
+
# These deviate from the Common Log Format definitions in that they use %O
|
|
205
|
+
# (the actual bytes sent including headers) instead of %b (the size of the
|
|
206
|
+
# requested file), because the latter makes it impossible to detect partial
|
|
207
|
+
# requests.
|
|
208
|
+
#
|
|
209
|
+
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
|
|
210
|
+
# Use mod_remoteip instead.
|
|
211
|
+
#
|
|
212
|
+
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
|
213
|
+
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
214
|
+
LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
|
215
|
+
LogFormat "%{Referer}i -> %U" referer
|
|
216
|
+
LogFormat "%{User-agent}i" agent
|
|
217
|
+
|
|
218
|
+
# Include of directories ignores editors' and dpkg's backup files,
|
|
219
|
+
# see README.Debian for details.
|
|
220
|
+
|
|
221
|
+
# Include generic snippets of statements
|
|
222
|
+
IncludeOptional conf-enabled/*.conf
|
|
223
|
+
|
|
224
|
+
# Include the virtual host configurations:
|
|
225
|
+
IncludeOptional sites-enabled/*.conf
|
|
226
|
+
|
|
227
|
+
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
228
|
+
|
|
229
|
+
ServerTokens Prod
|
|
230
|
+
ServerSignature Off
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# prefork MPM
|
|
2
|
+
# StartServers: number of server processes to start
|
|
3
|
+
# MinSpareServers: minimum number of server processes which are kept spare
|
|
4
|
+
# MaxSpareServers: maximum number of server processes which are kept spare
|
|
5
|
+
# MaxRequestWorkers: maximum number of server processes allowed to start
|
|
6
|
+
# MaxConnectionsPerChild: maximum number of requests a server process serves
|
|
7
|
+
|
|
8
|
+
<IfModule mpm_prefork_module>
|
|
9
|
+
StartServers 5
|
|
10
|
+
MinSpareServers 10
|
|
11
|
+
MaxSpareServers 20
|
|
12
|
+
MaxRequestWorkers 150
|
|
13
|
+
MaxConnectionsPerChild 0
|
|
14
|
+
</IfModule>
|
|
15
|
+
|
|
16
|
+
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<VirtualHost *:80>
|
|
2
|
+
# ServerName preset.workspace
|
|
3
|
+
# ServerAlias preset-front.workspace
|
|
4
|
+
|
|
5
|
+
DocumentRoot ${APACHE_DOCUMENT_ROOT}
|
|
6
|
+
# SetEnv PHP_ENV live
|
|
7
|
+
|
|
8
|
+
# <Directory /var/www>
|
|
9
|
+
# Options +ExecCGI -Indexes +FollowSymLinks +MultiViews
|
|
10
|
+
# AllowOverride All
|
|
11
|
+
# Require all granted
|
|
12
|
+
# </Directory>
|
|
13
|
+
|
|
14
|
+
<FilesMatch "\.(env|yml|sh|conf)|Dockerfile">
|
|
15
|
+
Order allow,deny
|
|
16
|
+
Deny from all
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
ErrorLog /dev/stderr
|
|
20
|
+
CustomLog /dev/stdout combined
|
|
21
|
+
</VirtualHost>
|