svg
This commit is contained in:
5
services/50-nineskeletor/apache/apache.conf
Normal file
5
services/50-nineskeletor/apache/apache.conf
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
# nineskeletor
|
||||
ProxyPass /nineskeletor http://nineskeletor/nineskeletor retry=0 keepalive=On
|
||||
ProxyPassReverse /nineskeletor http://nineskeletor/nineskeletor retry=0
|
||||
|
2
services/50-nineskeletor/dicos/.env.dicos
Normal file
2
services/50-nineskeletor/dicos/.env.dicos
Normal file
@ -0,0 +1,2 @@
|
||||
templates=services/50-nineskeletor/tmpl/nineskeletor.conf,services/50-nineskeletor/tmpl/nineapache.conf
|
||||
destinations=services/50-nineskeletor/volume/apache/nineskeletor.conf,services/10-nineapache/volume/apache/50-nineskeletor.conf
|
@ -10,5 +10,6 @@
|
||||
networks:
|
||||
- nine-network
|
||||
volumes:
|
||||
- ./services/50-nineskeletor/volume/apache:/etc/apache2/conf.d/nine
|
||||
- ./services/50-nineskeletor/volume/data/private:/app/uploads
|
||||
- ./services/50-nineskeletor/volume/data/public:/app/public/uploads
|
||||
|
1
services/50-nineskeletor/env/.env
vendored
1
services/50-nineskeletor/env/.env
vendored
@ -1,6 +1,7 @@
|
||||
|
||||
# == NINESKELETOR =========================================================================================================================
|
||||
|
||||
# Attention si vous changez cette valeur, il est necessaire de regen votre service (vous pouvez préservez la bdd)
|
||||
NINESKELETOR_PREFIX=nineskeletor
|
||||
|
||||
APP_SECRET=${ADMIN_PASSWORD}
|
||||
|
@ -29,10 +29,13 @@ function destroynineskeletor {
|
||||
stop $NINESKELETOR_SERVICE_NAME 1
|
||||
docker-compose rm -s -v -f "$NINESKELETOR_SERVICE_NAME"
|
||||
|
||||
|
||||
if [[ -z $1 ]]; then Question_ouinon "Souhaitez-vous supprimer la BDD associé à $NINESKELETOR_SERVICE_NAME ?";fi
|
||||
if [[ "$?" = 0 || -z $1 ]]
|
||||
if [[ -z $1 ]]; then
|
||||
Question_ouinon "Souhaitez-vous supprimer la BDD associé à $NINESKELETOR_SERVICE_NAME ?";
|
||||
response=$?
|
||||
fi
|
||||
if [[ "$response" == 0 || ! -z $1 ]]
|
||||
then
|
||||
EchoRouge "Delete BDD = "$NINESKELETOR_SERVICE_NAME
|
||||
docker-compose exec $MARIADB_SERVICE_NAME /nine/delete.sh $NINESKELETOR_SERVICE_NAME
|
||||
fi
|
||||
|
||||
|
5
services/50-nineskeletor/tmpl/nineapache.conf
Normal file
5
services/50-nineskeletor/tmpl/nineapache.conf
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
# nineskeletor
|
||||
ProxyPass /${NINESKELETOR_PREFIX} http://nineskeletor/${NINESKELETOR_PREFIX} retry=0 keepalive=On
|
||||
ProxyPassReverse /${NINESKELETOR_PREFIX} http://nineskeletor/${NINESKELETOR_PREFIX} retry=0
|
||||
|
19
services/50-nineskeletor/tmpl/nineskeletor.conf
Normal file
19
services/50-nineskeletor/tmpl/nineskeletor.conf
Normal file
@ -0,0 +1,19 @@
|
||||
LoadModule rewrite_module modules/mod_rewrite.so
|
||||
ServerName nineapache.local
|
||||
DocumentRoot "/app/public"
|
||||
Alias /${NINESKELETOR_PREFIX} /app/public
|
||||
<Directory "/app/public">
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\2$
|
||||
RewriteRule .* - [E=BASE:%1]
|
||||
RewriteCond %{HTTP:Authorization} .+
|
||||
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]
|
||||
RewriteCond %{ENV:REDIRECT_STATUS} =""
|
||||
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ %{ENV:BASE}/index.php [L]
|
||||
</Directory>
|
Reference in New Issue
Block a user