Skip to content

Commit

Permalink
TTK-22691 add flex (pumukit#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai authored Jan 29, 2020
1 parent fa351a4 commit 8b9c20e
Show file tree
Hide file tree
Showing 99 changed files with 5,346 additions and 943 deletions.
80 changes: 80 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# 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.
#
# 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

###> doctrine/mongodb-odm-bundle ###
MONGODB_URL=mongodb://db:27017
MONGODB_DB=pumukit
WAIT_HOSTS=db:27017
###< doctrine/mongodb-odm-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use="gmail://username:password@localhost"
# For a generic SMTP server, use="smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=!ChangeMe!
TRUSTED_PROXIES=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
TRUSTED_HOSTS=localhost,api
###< symfony/framework-bundle ###


# This file is a "template" of which env vars need to be defined for your application
# Create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
###< symfony/framework-bundle ###

###> pumukit ###
PUMUKIT_USER=admin
PUMUKIT_PASS=admin
PUMUKIT_USER_MAIL=[email protected]
# Recomended values true or false other values won't be recognized
AUTOCREATE_PUMUKIT_USER=true
PUMUKIT_PRIMARY_COLOR=#ed6d00
PUMUKIT_FONT_COLOR=#ffffff
###< pumukit ###

###> php-fpm ###
PHP_UPLOAD_TMP_DIR=/tmp
PHP_MEMORY_LIMIT=512M
PHP_UPLOAD_MAX_FILESIZE=10G
PHP_DEFAULT_LOCALE=es
PHP_DEFAULT_CHARSET=UTF-8
###> php-fpm ###

PUMUKIT_MONGODB_SERVER='mongodb://localhost:27017'
PUMUKIT_MONGODB_DATABASE=pumukit
PUMUKIT_MAILER_TRANSPORT=smtp
PUMUKIT_MAILER_HOST=127.0.0.1
PUMUKIT_MAILER_USER=null
PUMUKIT_MAILER_PASSWORD=null
PUMUKIT_LOCALE=en
PUMUKIT_SECRET=ThisTokenIsNotSoSecretChangeIt
PUMUKIT_TITLE=UPumukitTV
PUMUKIT_DESCRIPTION='Pumukit University TV Website'
PUMUKIT_KEYWORDS='webtv, Tv, Pumukit University, pumukit'
PUMUKIT_EMAIL=[email protected]
PUMUKIT_LOGO=/bundles/pumukitwebtv/images/webtv/pumukit_logo.png
PUMUKIT_LOCALES='["en", "es", "ca"]'
PUMUKIT_UPLOADS_DIR='%kernel.root_dir%/../web/uploads'
PUMUKIT_UPLOADS_URL=/uploads
PUMUKIT_INBOX='%kernel.root_dir%/../web/storage/inbox'
PUMUKIT_TMP='%kernel.root_dir%/../web/storage/tmp'
PUMUKIT_DELETE_ON_DISK=true
4 changes: 4 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
43 changes: 31 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/src/Pumukit/ExampleDataBundle/Resources/public/images
/src/Pumukit/ExampleDataBundle/Resources/public/videos
/web/bundles/
/web/uploads/material/*
!/web/uploads/material/.gitignore
/web/uploads/pic/*
!/web/uploads/pic/.gitignore
/web/storage/downloads/*
!/web/storage/downloads/.gitignore
/web/storage/masters/*
!/web/storage/masters/.gitignore
/public/uploads/material/*
!/public/uploads/material/.gitignore
/public/uploads/pic/*
!/public/uploads/pic/.gitignore
/public/storage/downloads/*
!/public/storage/downloads/.gitignore
/public/storage/masters/*
!/public/storage/masters/.gitignore
/app/Resources/*
!/app/Resources/views
!/app/Resources/FOSUserBundle
Expand All @@ -18,11 +15,33 @@
/app/config/parameters.yml
/build/
/vendor/
/bin/
/composer.phar
*~
\#*\#
TAGS
.php_cs.cache
/var/cache/*
/var/log/*

###> friendsofphp/php-cs-fixer ###
/.php_cs
/.php_cs.cache
###< friendsofphp/php-cs-fixer ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###

###> symfony/phpunit-bridge ###
.phpunit
###< symfony/phpunit-bridge ###

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
###< symfony/framework-bundle ###
118 changes: 0 additions & 118 deletions app/config/config.yml

This file was deleted.

38 changes: 0 additions & 38 deletions app/config/config_dev.yml

This file was deleted.

35 changes: 0 additions & 35 deletions app/config/config_prod.yml

This file was deleted.

Loading

0 comments on commit 8b9c20e

Please sign in to comment.