diff --git a/compose.yaml b/compose.yaml index ee94831..00a6137 100644 --- a/compose.yaml +++ b/compose.yaml @@ -13,6 +13,7 @@ services: build: context: . dockerfile: Dockerfile + user: "0:${NGINX_GID:-0}" volumes: - ${SERVER_STATIC_ROOT}:/app/staticfiles - ${SERVER_MEDIA_ROOT}:/app/media diff --git a/entrypoint.sh b/entrypoint.sh index b2fc1af..ac8e628 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,6 +22,7 @@ echo "Starting Gunicorn..." exec gunicorn --bind unix:/run/sockets/anais_expotec.sock \ --workers 3 \ --timeout 60 \ + --umask 007 \ --access-logfile - \ --error-logfile - \ config.wsgi:application diff --git a/templates/website/includes/issues_page.html b/templates/website/includes/issues_page.html index 345dabd..cba15dd 100644 --- a/templates/website/includes/issues_page.html +++ b/templates/website/includes/issues_page.html @@ -17,7 +17,7 @@
{% if issue.volume %}Vol. {{ issue.volume }}{% endif %}{% if issue.volume and issue.number %}, {% endif %}{% if issue.number %}N. {{ issue.number }}{% endif %}
{% endif %} -Publicado em {{ issue.pub_date }}
+{{ issue.pub_date|date:"Y" }}
Detalhes diff --git a/templates/website/index.html b/templates/website/index.html index c6cede4..84454ff 100644 --- a/templates/website/index.html +++ b/templates/website/index.html @@ -14,8 +14,8 @@