diff --git a/.dockerignore b/.dockerignore index 9c054c4..4f6f44c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,7 +10,6 @@ var/cache var/log var/data.db -.env .env.* public/build diff --git a/Dockerfile b/Dockerfile index d7c1b8f..4eb6ad9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,7 @@ ENV TEMPLATE_PHP_INI "production" ENV PHP_INI_MEMORY_LIMIT="128M" ENV PHP_EXTENSIONS="gd pdo_sqlite" \ - APACHE_RUN_USER=www-data \ - APACHE_RUN_GROUP=www-data \ + APACHE_EXTENSIONS="headers" \ APACHE_DOCUMENT_ROOT=public/ RUN composer install --no-progress --no-interaction --optimize-autoloader @@ -27,12 +26,11 @@ RUN composer clear-cache RUN rm -rf node_modules ENV APP_ENV "prod" -ENV APP_DEBUG "0" -ENV APP_SECRET "455159ee27d159bdbdeb8b34e599e80e" -ENV MESSENGER_TRANSPORT_DSN "doctrine://default?auto_setup=0" ENV BUCKET_MODE "path" -ENV DATABASE_URL "sqlite:///%kernel.project_dir%/var/data.db" ENV CORS_ALLOW_ORIGIN "^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$" ENV TRUSTED_PROXIES "127.0.0.1,REMOTE_ADDR" VOLUME ["var/bins", "var/log"] + +ENV CRON_SCHEDULE "*/15 * * * *" +ENV CRON_COMMAND "bin/console schedule:run" diff --git a/public/.htaccess b/public/.htaccess index a08e7ae..27e60ff 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -86,10 +86,6 @@ DirectoryIndex index.php RewriteEngine On - RewriteCond %{HTTPS} !=on - RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] - - # Determine the RewriteBase automatically and set it as environment variable. # If you are using Apache aliases to do mass virtual hosting or installed the # project in a subdirectory, the base path will be prepended to allow proper diff --git a/templates/bundles/TwigBundle/Exception/error.html.twig b/templates/bundles/TwigBundle/Exception/error.html.twig new file mode 100644 index 0000000..3778adf --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block content %} +
+
+

+ Oops :( +

+
+
+ +
+
+
+
+
+
+

+ THE PAGE YOU WERE LOOKING FOR DOESN'T EXIST.
+ Checkout for any URL misspelling or return to the homepage. +

+
+
+
+
+
+
+{% endblock %} diff --git a/templates/bundles/TwigBundle/Exception/error404.html.twig b/templates/bundles/TwigBundle/Exception/error404.html.twig new file mode 100644 index 0000000..750d31f --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error404.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block content %} +
+
+

+ Page not found +

+
+
+ +
+
+
+
+
+
+

+ THE PAGE YOU WERE LOOKING FOR DOESN'T EXIST.
+ Checkout for any URL misspelling or return to the homepage. +

+
+
+
+
+
+
+{% endblock %} diff --git a/templates/bundles/TwigBundle/Exception/error500.html.twig b/templates/bundles/TwigBundle/Exception/error500.html.twig new file mode 100644 index 0000000..fb73425 --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error500.html.twig @@ -0,0 +1,28 @@ +{% extends 'base.html.twig' %} + +{% block content %} +
+
+

+ INTERNAL SERVER ERROR +

+
+
+ +
+
+
+
+
+
+

+ THE PAGE YOU WERE LOOKING FOR DOESN'T EXIST.
+ Checkout for any URL misspelling or return to the homepage. +

+
+
+
+
+
+
+{% endblock %}