up
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ ! -f /app/.env ]; then
|
||||
env | while IFS='=' read -r key val; do
|
||||
case "$key" in
|
||||
HOME|PATH|HOSTNAME|TERM|PHP_*|SUPERVISOR_*|COOLIFY_*) ;;
|
||||
*) printf '%s=%s\n' "$key" "$val" >> /app/.env ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
@@ -1,4 +1,5 @@
|
||||
error_log /dev/stderr warn;
|
||||
access_log /dev/stdout;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
@@ -18,6 +19,11 @@ server {
|
||||
|
||||
error_page 404 /index.php;
|
||||
|
||||
location = /ping {
|
||||
return 200 "pong\n";
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
||||
Reference in New Issue
Block a user