This commit is contained in:
2024-07-26 22:34:20 +02:00
parent a918b46e6c
commit 34fb5c2c2d
188 changed files with 1028 additions and 540 deletions

View File

@ -0,0 +1,5 @@
# nineskeletor
ProxyPass /nineskeletor http://nineskeletor/nineskeletor retry=0 keepalive=On
ProxyPassReverse /nineskeletor http://nineskeletor/nineskeletor retry=0

View 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

View File

@ -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

View File

@ -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}

View File

@ -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

View 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

View 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>