Skip to content

Commit

Permalink
Merge pull request #2 from rami-aouinti/blog
Browse files Browse the repository at this point in the history
School Management
  • Loading branch information
rami-aouinti authored Nov 18, 2024
2 parents 2854595 + 32f1b57 commit 94677bf
Show file tree
Hide file tree
Showing 5,745 changed files with 2,616,898 additions and 7,779 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
42 changes: 41 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR
DATABASE_URL=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/symfony
###< doctrine/doctrine-bundle ###

DATABASE_HOST='mysql'
DATABASE_PORT='3306'
DATABASE_NAME='symfony'
DATABASE_USER='root'
DATABASE_PASSWORD='{{MYSQL_ROOT_PASSWORD}}'

###> symfony/mailer ###
MAILER_DSN=smtp://user:pass@mail:1025
###< symfony/mailer ###
Expand Down Expand Up @@ -215,7 +221,6 @@ DOCTRINE_DB_VERSION=${MYSQL_SERVER_VERSION}
MYSQLDUMP_DATABASE_URL=mysql://php-calendar-api:php-calendar-api@127.0.0.1:3320/php-calendar-api?serverVersion=5.7
#MYSQLDUMP_DATABASE_URL=mysql://php-calendar-api:php-calendar-api@de-ixno-php-calendar-api-development-db-10-7-1:3306/php-calendar-api?serverVersion=5.7
MYSQLDUMP_IGNORED_TABLES=calendar*,doctrine_migration_versions,event,holiday_group,image,place,refresh_tokens,user
MYSQLDUMP_IGNORED_TABLES=calendar*,doctrine_migration_versions,event,holiday_group,image,place,refresh_tokens,user,holiday
#MYSQLDUMP_FILTERED_TABLES=
#MYSQLDUMP_TABLES_NO_DATA=
#MYSQLDUMP_TABLES_ONLY_DATA=
Expand All @@ -229,3 +234,38 @@ LANGUAGE_CODE=en
# Gmail SHOULD NOT be used on production, use it in development only.
# MAILER_DSN=gmail://USERNAME:PASSWORD@default
###< symfony/google-mailer ###
APP_INSTALLED='1'

## Encrypt method bcrypt/sha1/md5
APP_ENCRYPT_METHOD='bcrypt'

APP_LOCALE='en'

APP_CUSTOM_VUE_TEMPLATE='0'

GOOGLE_MAPS_API_KEY=''

# Enable the entryponint /api for API docs
APP_ENABLE_API_ENTRYPOINT=false

#APP_API_PLATFORM_URL='http://localhost/api/' #deprecated

###< chamilo ###

###> symfony/messenger ###
# Choose one of the transports below
# MESSENGER_TRANSPORT_DSN=doctrine://default
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
###< symfony/messenger ###

###< additional settings ###
DB_MANAGER_ENABLED='0'
SOFTWARE_NAME='Chamilo'
SOFTWARE_URL='https://chamilo.org'
DENY_DELETE_USERS='0'
HOSTING_TOTAL_SIZE_LIMIT='0'
THEME_FALLBACK='chamilo'
PACKAGER='chamilo'
DEFAULT_TEMPLATE='default'
ADMIN_CHAMILO_ANNOUNCEMENTS_DISABLE='0'
272 changes: 272 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
# https://symfony.com/doc/current/configuration/secrets.html
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration

###> docker compose configuration ###
COMPOSE_PROJECT_NAME=environment1
###< docker compose configuration ###

###> NGinx docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ###
WEB_PORT_HTTP=80
WEB_PORT_SSL=443
###< Nginx docker configuration ###

###> XDebug docker configuration. Can be overridden in: .env.local. ###
# XDEBUG_CONFIG possible values: main|osx. Use main value for Linux and Windows, osx value for MacOS.
XDEBUG_CONFIG=main
# Sometimes we need to use different xdebug versions, list of versions can be found here - https://pecl.php.net/package/xdebug
XDEBUG_VERSION=3.3.2
###< XDebug docker configuration ###

###> MySQL docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ###
# MySQL version, recommend values: 9.1.0|9.0.1|8.4.2|8.3.0|8.2.0|8.1.0|8.0.39
MYSQL_VERSION=8.4.2
# MySQL INNODB_USE_NATIVE_AIO possible values: 1|0. Set to 0 when AIO interface is not supported on OSX. https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_use_native_aio
INNODB_USE_NATIVE_AIO=1
# Sometimes AWS MySQL RDS has SQL_MODE="NO_ENGINE_SUBSTITUTION" (https://github.com/awsdocs/amazon-rds-user-guide/issues/160) but MySQL default described here - https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_mode
SQL_MODE="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
MYSQL_ROOT_PASSWORD=secret
MYSQL_PORT=33061
###< MySQL docker configuration ###

###> RabbitMQ docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ###
RABBITMQ_ERLANG_COOKIE=7ead507151fc4461b9f45c1161384a04
RABBITMQ_USER=guest
RABBITMQ_PASS=guest
RABBITMQ_MANAGEMENT_PORT=15672
###< RabbitMQ docker configuration ###

###> symfony/framework-bundle ###
APP_ENV=dev
APP_DEBUG=1
APP_SECRET=42f011ec3a7bde0bec87364b1d967193
TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8"
DATABASE_URL=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/symfony
###< doctrine/doctrine-bundle ###

###> symfony/mailer ###
MAILER_DSN=smtp://user:pass@mail:1025
###< symfony/mailer ###

###> symfony/messenger ###
MESSENGER_TRANSPORT_DSN=amqp://${RABBITMQ_USER}:${RABBITMQ_PASS}@rabbitmq:5672/%2f/messages
###< symfony/messenger ###

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=flock
###< symfony/lock ###

###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###


# ARM64V8 name
ARM64V8=arm64v8

# a) Either ARM64V8 image add (for non Mac arm processors)
IMAGE_ADD=""

# b) Or ARM64V8 image add (for Mac arm processors)
#IMAGE_ADD="${ARM64V8}/"

# Namespace of this project
NAMESPACE=de.ixno.php-calendar-api

# Namespace of this project (development)
NAMESPACE_DEVELOPMENT=${NAMESPACE}.development

# Namespace to use for host name variables (hostname safe)
NAMESPACE_HOSTNAME=de-ixno-php-calendar-api

# Namespace to use for host name variables (hostname safe) (development)
NAMESPACE_HOSTNAME_DEVELOPMENT=${NAMESPACE_HOSTNAME}-development

# Namespace of image
APP_IMAGE=ixnode/${IMAGE_ADD}php-calendar-api

# Namespace of image (development)
APP_IMAGE_DEVELOPMENT=ixnode/${IMAGE_ADD}php-calendar-api-dev

# The URL of this project
GENERAL_URL_BASIC=twelvepics.com
GENERAL_URL=${GENERAL_URL_BASIC}

# htpasswd -nbm user pass
GENERAL_BASICAUTH=user:$$apr1$$7Aa2.yBz$$2nTJ7p9le2M1dFTJP3pbe.

# The port for access via the web
NGINX_EXPOSE_PORT_HTTP=80
NGINX_EXPOSE_PORT_HTTPS=443

# Version of this app
VERSION_APP=0.34.0

# Version of this app
VERSION_APP_LATEST=latest


UID=1000
GID=1000


###> PHP Configuration ###
PHP_FPM_SERVER_DOCKERFILE=php-fpm.dockerfile
PHP_VERSION=8.1.4
PHP_VERSION_HOSTNAME=8-1-4
###< PHP Configuration ###

###> Docker Configuration: MySQL secrets and configurations
MYSQL_VERSION_HOSTNAME=10-7-1
MYSQL_IMAGE=mariadb:${MYSQL_VERSION}
MYSQL_SERVER_USER_ROOT=root
MYSQL_SERVER_PASSWORD_ROOT=ajWqh7sUeUUa
MYSQL_SERVER_PORT='3306'
MYSQL_SERVER_VERSION=mariadb-10.7.3
MYSQL_SERVER_DRIVER=pdo_mysql
# db
MYSQL_SERVER_DB=php-calendar-api
MYSQL_SERVER_USER=php-calendar-api
MYSQL_SERVER_PASSWORD=php-calendar-api
# test db
MYSQL_SERVER_DB_TEST=php-calendar-api-test
MYSQL_SERVER_USER_TEST=php-calendar-api-test
MYSQL_SERVER_PASSWORD_TEST=php-calendar-api-test
###< Docker Configuration: MySQL secrets and configurations

###> Adminer web application configs
ADMINER_WEB_APPLICATION_URL=adminer.${GENERAL_URL_BASIC}
ADMINER_WEB_APPLICATION_IMAGE=adminer:4.8.1
ADMINER_WEB_APPLICATION_CONTAINER_NAME=adminer-4.8.1-${NAMESPACE}
ADMINER_WEB_APPLICATION_HOSTNAME=adminer-4-8-1-${NAMESPACE_HOSTNAME}
###< Adminer web application configs

###> Traefik configs
TRAEFIK_SUFFIX=
###< Traefik configs

###> Docker Configuration: Mail secrets and configurations
MAIL_SERVER_TRANSPORT=smtp
MAIL_SERVER_HOST=localhost
MAIL_SERVER_PORT=1025
###< Docker Configuration: Mail secrets and configurations

###> Docker Configuration: System secrets and configurations
SYSTEM_CONTEXT=Development
SYSTEM_PROXY_HOST=
###< Docker Configuration: System secrets and configurations

###> Docker Configuration: General configurations
MYSQL_EXPOSE_PORT='3306' # Attention: Please also make changes to the DOCTRINE_DB_PORT variable.
MYSQL_EXPOSE_PORT_TEST='3321'
###< Docker Configuration: General configurations
###> own variables ###
PROJECT_NAME="PHP Calendar API"
API_BASE_URL=/api/v1
###< own variables ###

###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=cf0c55c30bea94a163674696bca73ad5
JWT_ROLE="IS_AUTHENTICATED_FULLY"
###< lexik/jwt-authentication-bundle ###

###> api ###
API_TRUSTED_IPS=127.0.0.1
###< api ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
DOCTRINE_DB_HOST=${ENV_DB_HOST:-127.0.0.1}
DOCTRINE_DB_PORT=${ENV_DB_PORT:-3306}
DOCTRINE_DB_NAME=${MYSQL_SERVER_DB}
DOCTRINE_DB_USER=${MYSQL_SERVER_USER_ROOT}
DOCTRINE_DB_PASS=${MYSQL_SERVER_PASSWORD_ROOT}
DOCTRINE_DB_DRIVER=${MYSQL_SERVER_DRIVER}
DOCTRINE_DB_VERSION=${MYSQL_SERVER_VERSION}
###< doctrine/doctrine-bundle ###

###> table-dumper (local docker settings) ###
MYSQLDUMP_DATABASE_URL=mysql://php-calendar-api:php-calendar-api@127.0.0.1:3320/php-calendar-api?serverVersion=5.7
#MYSQLDUMP_DATABASE_URL=mysql://php-calendar-api:php-calendar-api@de-ixno-php-calendar-api-development-db-10-7-1:3306/php-calendar-api?serverVersion=5.7
MYSQLDUMP_IGNORED_TABLES=calendar*,doctrine_migration_versions,event,holiday_group,image,place,refresh_tokens,user
#MYSQLDUMP_FILTERED_TABLES=
#MYSQLDUMP_TABLES_NO_DATA=
#MYSQLDUMP_TABLES_ONLY_DATA=
###< table-dumper (local docker settings) ###
###< symfony/lock ###

# Select default language (en, ru, bg, nl, hu)
LANGUAGE_CODE=en

###> symfony/google-mailer ###
# Gmail SHOULD NOT be used on production, use it in development only.
# MAILER_DSN=gmail://USERNAME:PASSWORD@default
###< symfony/google-mailer ###
APP_INSTALLED='{{APP_INSTALLED}}'

## Encrypt method bcrypt/sha1/md5
APP_ENCRYPT_METHOD='{{APP_ENCRYPT_METHOD}}'

APP_LOCALE='en_US'

APP_CUSTOM_VUE_TEMPLATE='0'

GOOGLE_MAPS_API_KEY=''

# Enable the entryponint /api for API docs
APP_ENABLE_API_ENTRYPOINT=false

#APP_API_PLATFORM_URL='http://localhost/api/' #deprecated

###< chamilo ###

###> symfony/messenger ###
# Choose one of the transports below
# MESSENGER_TRANSPORT_DSN=doctrine://default
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
###< symfony/messenger ###

###< additional settings ###
DB_MANAGER_ENABLED='{{DB_MANAGER_ENABLED}}'
SOFTWARE_NAME='{{SOFTWARE_NAME}}'
SOFTWARE_URL='{{SOFTWARE_URL}}'
DENY_DELETE_USERS='{{DENY_DELETE_USERS}}'
HOSTING_TOTAL_SIZE_LIMIT='{{HOSTING_TOTAL_SIZE_LIMIT}}'
THEME_FALLBACK='{{THEME_FALLBACK}}'
PACKAGER='{{PACKAGER}}'
DEFAULT_TEMPLATE='{{DEFAULT_TEMPLATE}}'
ADMIN_CHAMILO_ANNOUNCEMENTS_DISABLE='{{ADMIN_CHAMILO_ANNOUNCEMENTS_DISABLE}}'


DATABASE_HOST='mysql'
DATABASE_PORT='3306'
DATABASE_NAME='symfony'
DATABASE_USER='root'
DATABASE_PASSWORD='{{MYSQL_ROOT_PASSWORD}}'
Loading

0 comments on commit 94677bf

Please sign in to comment.