You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Arnaud Fornerot db0e67b04e
Cadoles/nineskeletor/pipeline/head There was a failure building this commit Details
correction docker
2 weeks ago
.githooks chore: add code quality tools 1 year ago
.jenkins fixevalidator 9 months ago
.vscode fixevalidator 9 months ago
assets gestion footeré 2 weeks ago
bin fixevalidator 9 months ago
config svg 2 months ago
migrations fixevalidator 9 months ago
misc correction docker 2 weeks ago
public fixevalidator 9 months ago
src gestion footeré 2 weeks ago
templates gestion footeré 2 weeks ago
tests fixevalidator 9 months ago
tools fixevalidator 9 months ago
translations fixevalidator 9 months ago
.env correction docker 2 weeks ago
.env.local.dist kubernites 3 months ago
.gitignore svg 2 months ago
.nvmrc svg 2 months ago
.php-cs-fixer.dist.php fixevalidator 9 months ago
.php-version fixevalidator 9 months ago
Jenkinsfile fixevalidator 9 months ago
Makefile maj make & dockerfile 2 weeks ago first commit symfony 6 1 year ago
commitlint.config.js fixevalidator 9 months ago
composer.json kubernites 3 months ago
composer.lock kubernites 3 months ago
docker-compose.yml correction docker 2 weeks ago
package-lock.json svg 2 months ago
package.json kubernites 3 months ago
phpunit.xml.dist fixevalidator 9 months ago
skaffold.yaml kubernites 3 months ago
symfony.lock fixevalidator 9 months ago
webpack.config.js fixevalidator 9 months ago
yarn.lock gestion footeré 2 weeks ago


Squelette applicatif symfony

Installation for local dev

curl -1sLf '' | sudo -E bash  
curl -sS | sudo apt-key add -  
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list  
apt-get update  
apt-get install git docker-compose composer symfony-cli php php-xml php-zip php-gd php-curl php-pgsql yarn  
git clone  
cd nineskeletor  
symfony server:ca:install  
cp .env .env.local  

Change in .env.local APP_SECRET variabile
This secret is the init password for admin user

Change in .env.local MERCURE_JWT_SECRET variable
And report this secret in docker-compose.yml MERCURE_PUBLISHER_JWT_KEY and MERCURE_SUBSCRIBER_JWT_KEY

And finish with


Run for local

symfony server:start

Installation for apache

exec installation for local dev except /bin/

Change in .env.local APP_WEBURL variable
For sample


Change in .env.local MERCURE variable like
The /hub alias must be the same on Apache configuration ProxyPass and ProxyPassReverse


Create the file docker-compose.override.yml like
The port 9090 must be the same in the apache configuration ProxyPass and ProxyPassReverse

version: '3'

      - "9090:80"    
      SERVER_NAME: ':80'
        cors_origins http://MyDomaine

And finish with


After install and configure apache

apt-get install apache libmodapache2
a2enmod rewrite proxy_http
service apache2 restart

sample apache configuration in /etc/apache2/site-available/000-

<VirtualHost *:80>
	DocumentRoot /var/www/html/nineskeletor/public
 	CustomLog /var/log/apache2/access.log common
    ErrorLog /var/log/apache2/error.log

    <Directory /var/www/html/nineskeletor/public>
        DirectoryIndex index.php

        <IfModule mod_negotiation.c>
            Options -MultiViews

        <IfModule mod_rewrite.c>
            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]

        <IfModule !mod_rewrite.c>
            <IfModule mod_alias.c>
                RedirectMatch 307 ^/$ /index.php/

    # For mercure server
    ProxyPass /hub/ http://localhost:9090/
    ProxyPassReverse /hub/ http://localhost:9090/


<VirtualHost *:1080>
    # For mailer server
    ProxyPass / http://localhost:1080/
    ProxyPassReverse / http://localhost:1080/

Cron Job

Make sure the cron job is running all the minute
You can copy this bin/nineskeletor.cron in your crontab

cp /var/www/html/nineskeletor/bin/nineskeletor.cron /etc/cron.d/nineskeletor

Messenger worker

Make sure the messenger consume the bus
Needed to send mail You can copy this bin/nineskeletor.service in your systemd

cp /var/www/html/nineskeletor/bin/nineskeletor.service /etc/systemd/system/
systemctl enable nineskeletor.service
systemctl start nineskeletor.service