-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from php-not-dead/phalcon-4.0.5
Phalcon 4.0.5
- Loading branch information
Showing
32 changed files
with
807 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
* text=auto | ||
*.sh text eol=lf | ||
*.crt text eol=lf | ||
*.csr text eol=lf | ||
*.key text eol=lf | ||
*.php text eol=lf | ||
*.cnf text eol=lf | ||
*.conf text eol=lf | ||
*.keymap text eol=lf | ||
*.ini text eol=lf | ||
*.phar -text | ||
*.so -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
FROM webdevops/php:7.4 | ||
|
||
ARG APP_ENV=production | ||
ENV WEB_DOCUMENT_ROOT=/app \ | ||
WEB_DOCUMENT_INDEX=index.php \ | ||
WEB_ALIAS_DOMAIN=*.vm \ | ||
WEB_PHP_TIMEOUT=600 \ | ||
WEB_PHP_SOCKET="" | ||
ENV WEB_PHP_SOCKET=127.0.0.1:9000 | ||
ENV APP_ENV "$APP_ENV" | ||
ENV fpm.pool.clear_env no | ||
ENV fpm.pool.pm=ondemand | ||
ENV fpm.pool.pm.max_children=50 | ||
ENV fpm.pool.pm.process_idle_timeout=10s | ||
ENV fpm.pool.pm.max_requests=500 | ||
ENV COMPOSER_NO_INTERACTION 1 | ||
|
||
# Preconfigure Nginx | ||
COPY conf/docker/ /opt/docker/ | ||
COPY conf/sources/nginx.list /etc/apt/sources.list.d/nginx.list | ||
RUN wget http://nginx.org/keys/nginx_signing.key \ | ||
&& apt-key add nginx_signing.key | ||
|
||
# Install apps and libs | ||
RUN apt-get update && apt-get -y install \ | ||
nginx \ | ||
apt-utils \ | ||
procps \ | ||
mcedit \ | ||
bsdtar \ | ||
libaio1 \ | ||
musl-dev \ | ||
gettext \ | ||
libpcre3-dev \ | ||
gzip \ | ||
git \ | ||
software-properties-common \ | ||
&& docker-run-bootstrap \ | ||
&& docker-image-cleanup | ||
|
||
# Install Phalcon, PSR, Xdebug, configure OPcache | ||
RUN pecl install xdebug psr | ||
COPY conf/xdebug/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
COPY conf/extensions/phalcon.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so | ||
RUN docker-php-ext-enable psr phalcon && docker-php-ext-configure opcache --enable-opcache | ||
|
||
# Install composer | ||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | ||
&& php composer-setup.php \ | ||
&& php -r "unlink('composer-setup.php');" \ | ||
&& mv composer.phar /usr/local/bin/composer | ||
|
||
# Configure `edit` command to use mcedit with `modarin256` skin | ||
COPY conf/mcedit/mc.keymap /etc/mc/mc.keymap | ||
COPY conf/mcedit/edit.sh /usr/bin/edit | ||
RUN chmod +x /usr/bin/edit | ||
|
||
EXPOSE 80 443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
### Phalcon dockerfile | ||
### Dockerfile for Phalcon 4.0.5 | ||
|
||
**Includes:** | ||
- PHP 7.4.* | ||
- Phalcon 4.0.5 | ||
- Nginx | ||
- Xdebug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if [[ ! -e "$WEB_DOCUMENT_ROOT" ]]; then | ||
echo "" | ||
echo "[WARNING] WEB_DOCUMENT_ROOT does not exists with path \"$WEB_DOCUMENT_ROOT\"!" | ||
echo "" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Init vars | ||
if [[ -z "$SERVICE_NGINX_OPTS" ]]; then SERVICE_NGINX_OPTS=""; fi | ||
|
||
source /opt/docker/bin/config.sh | ||
|
||
includeScriptDir "/opt/docker/bin/service.d/nginx.d/" | ||
|
||
exec /usr/sbin/nginx -g 'daemon off;' $SERVICE_NGINX_OPTS |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
upstream php { | ||
server <PHP_SOCKET>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include /opt/docker/etc/nginx/global.conf; | ||
include /opt/docker/etc/nginx/php.conf; | ||
include /opt/docker/etc/nginx/conf.d/*.conf; | ||
include /opt/docker/etc/nginx/vhost.conf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIE1DCCArwCCQDMMwGnSuK0tTANBgkqhkiG9w0BAQsFADAsMRswGQYDVQQKExJE | ||
b2NrZXIgQm9pbGVycGxhdGUxDTALBgNVBAMUBCoudm0wHhcNMTUwNTA0MTcxNDQw | ||
WhcNMjUwNTAxMTcxNDQwWjAsMRswGQYDVQQKExJEb2NrZXIgQm9pbGVycGxhdGUx | ||
DTALBgNVBAMUBCoudm0wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDK | ||
3TIUiyDvXelWeY9VXMrpjuZtYpVSDsACLpjFUhMnsP5/iKT0VbeZyqHvmwZjAg4G | ||
Y10d+yZDdgv/xeu0HPOFbtR6pCp10d1tdLHZto5Cyuxu7IQsAVjnD6Ko7XFwtNk7 | ||
9o6JZfAFaGL4w5MokrVmCtspnsMZH7/7zU4f96cbF39zLopnpuXGD6t6DA8Qj3gy | ||
0duaTjs42bYRN+rwLzVKAev99iQ4kPMJn4vV6/Xk6rtoSzC67GQyVZYaFypicD1S | ||
NtsRmgEVvjCBDbrLOneUiRwff6qxEsZi7Hxv7BKFj4iUWnII7K/nP7T6uBHQjHO+ | ||
FpsGkU9lCMrCeVFBe8kKz/cbhd+yLUxXwAPr6gSOPmwn232Gy4tozvqZHpbUxsgx | ||
7sT3ej9K66h1D7J+BjNFWYM1hbnC1r7H/xS7EBzBV8qRoQCVe08Juf5xsouXFakD | ||
clLV4+L+1cxkpwsCQDly5g3tm/TBqA2O+ZJ+YHQDHKkzMyhLs6i0X/M5qvJBiLg1 | ||
GLTCS20rpQ5gXTEGuINqHgwXQWkUO6bhgSYqdHGX3zbZ5+qWpI4eui3dHZ1Ll0VH | ||
6Icpb7ORTQwhc6W8KBlybssYPSlGOEBGUjYGNheoz9FpoSkxCis+P8ZNKtrmpPoq | ||
Su0eOOGFOFHG02eOgPVxSwrDeN9MVJo7BPysGMHJmQIDAQABMA0GCSqGSIb3DQEB | ||
CwUAA4ICAQC63g6NHmQKbiy3G6iaDkpUSbr5Mq2YgU61XnvWVyREqDcy/BXCw9oY | ||
SJ/KUvCpqPnACNOFqjadRAmPiA9nf2WduoCgwQGV/YRFGswSuVvh/3X2TX5NWvbS | ||
t8MQDttQg1dxpiMUjlu3rqhfohBdWJvp2lVSdpDb/MOlXBc/+p7HfOHwhqB7wwPN | ||
NNbSKUbZqZxmD8cOf1X0hASr1yfFPj+2vST3ESaON8S0T2p63YX/sD5jvOUiEuyw | ||
I5WcvLmiRZA07SH8nWyckLY3qWL+OlhSZrlAnolWS00b+7h5LNuRYEjKzwVgntoA | ||
aCopyQih6wIk0+AfJO4sfhJBmQhnIrAaP/zwBH5g9zVizLf5H7U+hNXrMwgw55Sq | ||
vjMdkZHvPKUXTvVit/rYE9H+PY3brkRWzOl4V/i/ZLJJm5805H/NyTbz9kPMJw2Q | ||
nn+KOpfXXySD39f8iuRgSKXsYNul38hxWgcZZ6g+sOOp2n/VUmf0eZUWNnJ8i7AP | ||
4Qif7aDKMcibOwSwsB+DKZXDvZ5XSdnMphtuLS5rPSL81rVRmWC2DMfQ2eP8j0WN | ||
VTroSk0xedQ7Qr+9TNooi9IyzX6n1a2S1UiciEZ3ZcDbXPl/P01m+IYZyPnLv0+9 | ||
ZeioZYh1JLv3/OKsMrMLTfh2ZCj3aXwmc2Owi/wU2LS5QUOMcHH7CQ== | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIIEcTCCAlkCAQAwLDEbMBkGA1UEChMSRG9ja2VyIEJvaWxlcnBsYX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JzBvxTGbTrvPU25WJFtu+EajKqXO0SHdy0yx8 | ||
uH4ykRBJRc36+oYo7nZ5D56dh7pZn3+9J64FKAOV0Q3KqMFieGy053ezuhJd70eZ | ||
UozTgfjs3WpMzoYmKETSyl3XZSdInRe+sUlKPruTsKyg69oYxjPlrGfAmmGcCFca | ||
TnZinT18dI92zK7OtOVkmYeYKC1lwuhftVrNMXzZuHOGpS9NNYtc4nDqDMIEOfV3 | ||
6rCdu03WjEgJ+Z67tJs16xOx9du4/EHxS2Ijn9DPfVJvYy0TgzDi1BUpjWx0KTLx | ||
C4OQbEZ/QTWmHVbSch/hcZhzbf7SNh5RpnW4EtmcpDFjIKMfxJmoKeiTf7qnilx0 | ||
7uRvsZFKoDKRDOFiPfgMg5AOtLHziYsd9m0tJjC2GHvFuPjzOtzhnUUjmmvht170 | ||
2aqKakjST4amg7jzLcs871HX0/WjOtt29NpOz140blkKf1bisg== | ||
-----END CERTIFICATE REQUEST----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIJKAIBAAKCAgEAyt0yFIsg713pVnmPVVzK6Y7mbWKVUg7AAi6YxVITJ7D+f4ik | ||
9FW3mcqh75sGYwIOBmNdHfsmQ3YL/8XrtBzzhW7UeqQqddHdbXSx2baOQsrsbuyE | ||
LAFY5w+iqO1xcLTZO/aOiWXwBWhi+MOTKJK1ZgrbKZ7DGR+/+81OH/enGxd/cy6K | ||
Z6blxg+regwPEI94MtHbmk47ONm2ETfq8C81SgHr/fYkOJDzCZ+L1ev15Oq7aEsw | ||
uuxkMlWWGhcqYnA9UjbbEZoBFb4wgQ26yzp3lIkcH3+qsRLGYux8b+wShY+IlFpy | ||
COyv5z+0+rgR0IxzvhabBpFPZQjKwnlRQXvJCs/3G4Xfsi1MV8AD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YqhykRTPJKf32eZqVheWOZJTA/9fgv9ux52oxGycM8O | ||
gmsNAoIBAQC60m5uZnd5uYnPLWkcXYNgq/kbO1UvHHut/FhVMKX7z4MrU0XKNfWO | ||
MECoP5K9bU0aq+Y6KIMe7FapjvT0iSHRu1Cu+HZY8JI2A0xcIAeDijLRl7sP6wrB | ||
q1+2DKgANjRAlWfsEfoX658JBpitPngjOheBnRCMpVQMyUT5HE/BKWf5zwdUB0mY | ||
S+K8nA90HcDeJIS8RcGolbVwUV0oBABhr/cf50lYhqozqCr7YQ33ZGs7Uq3oz8+4 | ||
UARmN2YPLl3Znm3GX12em8c6B0LX8vvA7Jw06Rf2Ksup1+3Ce1PTLiEy9A4FyRf3 | ||
Hc2HmBbnJAtZlr5QikMqlzzAmmLqwH6dAoIBAC+ryaQGJFsijCSuaDfRp/uy9xnd | ||
DjgMdTwjl5WLBmyudChVMANl8eqCbvVO41CN84yORk03oQ4cx0eKxAZaLaSzgkb3 | ||
W0X2nFQe7VJSYMQswCQ+1WfJvEFrIdkEKIa//uQdhqNrgUKSNVhhSTMbNEkDTIWn | ||
ssbv2H9hvUaFt/J/vP9zCKuU5oYvNU7Oi6ZXRYezRn9atlJYanLFoJnHUBRzGms5 | ||
K0vhdCPDXQq87z5Yudoh0jLUQF9Nx0GTWeBceQ9n5hZeRUNQWxP4AJThQX9KSPTS | ||
mbL3Kh4XNRmAUJ2N+Njh+3dg91s+JkKvC1wcspLsmLPQe+9AxBSH9y5JE/8= | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# compatibility for PHP and TYPO3 Docker Boilerplate | ||
include /opt/docker/etc/nginx/vhost.common.d/*.conf; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
client_max_body_size 50m; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
location / { | ||
try_files /public/$uri /public/$uri/ /public/index.php?$query_string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
access_log /docker.stdout; | ||
error_log /docker.stderr warn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
location ~ \.php$ { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass php; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $request_filename; | ||
fastcgi_read_timeout <PHP_TIMEOUT>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
server { | ||
listen 80 default_server; | ||
|
||
server_name _ <ALIAS_DOMAIN> docker; | ||
|
||
root "<DOCUMENT_ROOT>"; | ||
index <DOCUMENT_INDEX>; | ||
|
||
include /opt/docker/etc/nginx/vhost.common.d/*.conf; | ||
} | ||
|
||
############## | ||
# SSL | ||
############## | ||
|
||
server { | ||
listen 443 default_server; | ||
|
||
server_name _ <ALIAS_DOMAIN> docker; | ||
|
||
root "<DOCUMENT_ROOT>"; | ||
index <DOCUMENT_INDEX>; | ||
|
||
include /opt/docker/etc/nginx/vhost.common.d/*.conf; | ||
include /opt/docker/etc/nginx/vhost.ssl.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ssl on; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive | ||
ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA'; | ||
ssl_prefer_server_ciphers on; | ||
|
||
ssl_certificate /opt/docker/etc/nginx/ssl/server.crt; | ||
ssl_certificate_key /opt/docker/etc/nginx/ssl/server.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[group:nginx] | ||
programs=nginxd | ||
priority=20 | ||
|
||
[program:nginxd] | ||
command = /opt/docker/bin/service.d/nginx.sh | ||
process_name=%(program_name)s | ||
startsecs = 0 | ||
autostart = true | ||
autorestart = true | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/stderr | ||
stderr_logfile_maxbytes=0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
IMAGE_FAMILY=$(docker-image-info family) | ||
|
||
# Remove daemon statement (will be added as command line argument) | ||
go-replace --mode=lineinfile --regex --regex-backrefs \ | ||
-s '^[\s#]*daemon ' -r '' \ | ||
-- /etc/nginx/nginx.conf | ||
|
||
go-replace --mode=line --regex --regex-backrefs \ | ||
-s '^([ \t]*access_log)[ \t]*([^\t ;]+)(.*;)$' -r '$1 /docker.stdout $3' \ | ||
-s '^([ \t]*error_log)[ \t]*([^\t ;]+)(.*;)$' -r '$1 /docker.stderr $3' \ | ||
-- /etc/nginx/nginx.conf | ||
|
||
# Enable nginx main config | ||
ln -sf /opt/docker/etc/nginx/main.conf /etc/nginx/conf.d/10-docker.conf | ||
|
||
rm -f \ | ||
/etc/nginx/sites-enabled/default \ | ||
/etc/nginx/conf.d/default.conf | ||
|
||
if [[ "$IMAGE_FAMILY" == "RedHat" ]] || [[ "$IMAGE_FAMILY" == "Alpine" ]]; then | ||
ln -sf /opt/docker/etc/nginx/nginx.conf /etc/nginx/nginx.conf | ||
fi | ||
|
||
# Clear log dir | ||
rm -rf /var/lib/nginx/logs | ||
mkdir -p /var/lib/nginx/logs | ||
|
||
# Set log to stdout/stderr | ||
ln -sf /var/lib/nginx/logs/access.log /docker.stdout | ||
ln -sf /var/lib/nginx/logs/error.log /docker.stderr | ||
|
||
# Fix rights of ssl files | ||
chown -R root:root /opt/docker/etc/nginx/ssl | ||
find /opt/docker/etc/nginx/ssl -type d -exec chmod 750 {} \; | ||
find /opt/docker/etc/nginx/ssl -type f -exec chmod 640 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Restrict php-fpm to local connection | ||
go-replace --mode=line --regex \ | ||
-s '^[\s;]*listen[\s]*=' -r 'listen = 127.0.0.1:9000' \ | ||
--path=/opt/docker/etc/php/fpm/ \ | ||
--path-pattern='*.conf' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Create tmp dir for nginx | ||
mkdir -p /var/tmp/nginx/ | ||
|
||
# Prevent startup of nginx (ubuntu 16.04 needs it) | ||
ln -f -s /var/lib/nginx/logs /var/log/nginx | ||
|
||
# Replace markers | ||
go-replace \ | ||
-s "<DOCUMENT_INDEX>" -r "$WEB_DOCUMENT_INDEX" \ | ||
-s "<DOCUMENT_ROOT>" -r "$WEB_DOCUMENT_ROOT" \ | ||
-s "<ALIAS_DOMAIN>" -r "$WEB_ALIAS_DOMAIN" \ | ||
-s "<SERVERNAME>" -r "$HOSTNAME" \ | ||
-s "<PHP_SOCKET>" -r "$WEB_PHP_SOCKET" \ | ||
-s "<PHP_TIMEOUT>" -r "$WEB_PHP_TIMEOUT" \ | ||
--path=/opt/docker/etc/nginx/ \ | ||
--path-pattern='*.conf' \ | ||
--ignore-empty | ||
|
||
if [[ -z "$WEB_PHP_SOCKET" ]]; then | ||
## WEB_PHP_SOCKET is not set, remove PHP files | ||
rm -f -- /opt/docker/etc/nginx/conf.d/10-php.conf | ||
rm -f -- /opt/docker/etc/nginx/vhost.common.d/10-php.conf | ||
fi |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
export TERM=xterm-256color | ||
/usr/bin/mcedit --skin=modarin256 $1 |
Oops, something went wrong.