Skip to content

Commit

Permalink
Merge tag '2.6.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
criluc committed Sep 27, 2022
2 parents e7cda93 + 1879bbd commit 072a367
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.6.0] - UNRELEASED
## [2.6.0] - 2022-09-27
### Added
- Aggiunta possibilità di servire l'applicazione non come root path (per esempio come
https://mioentediricerca.it/epas).
- Completata la gestione delle comunicazioni ferie/riposi compensativi per i livelli I-III
nel caso il parametro generale sia configurato per non permettere approvazioni per i
livelli I-III
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.0-rc2
2.6.0
4 changes: 2 additions & 2 deletions app/views/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@
#{if header.equals('banner') }
<!-- Banner -->
<div id="banner">
<img class="img-responsive" src="/public/images/time_banner.jpg" alt="alt">
<img class="img-responsive pull-right hidden-xs" src="/public/images/logo.jpg" alt="alt">
<img class="img-responsive" src="@{'/public/images/time_banner.jpg'}" alt="alt">
<img class="img-responsive pull-right hidden-xs" src="@{'/public/images/logo.jpg'}" alt="alt">
</div>
#{/if}

Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ services:
environment:
- VIRTUAL_HOST=${HOST_NAME}
#- PROTOCOL=https # default: http -- (http,https)
##- EPAS_SHIB_LOGIN= # default: false -- (true,false)
#- HTTP_PATH=${HTTP_PATH} # default: / -- da utilizzare per non servire l'applicazione come root path ( / )
# se è specificata la variabile HTTP_PATH questa deve cominciare con uno slash ( / ), es.: HTTP_PATH=/epas
#- EPAS_SHIB_LOGIN= # default: false -- (true,false)
- JOBS_ACTIVE=true # default: false -- (true,false) -- Se forzato a true abilita l'esecuzione di tutti i job
#- APPLICATION_SECRET=${APPLICATION_SECRET} # Opzionale ma fortemente consigliato, utilizzato per le funzioni criptografiche.
# E' una stringa random, per esempio y2RS8pYk7g8NFttsRbjmhpEUm00tAQILvOfI1LMQ2wIiVV20J2S0VfQOdTjys9yh
Expand Down
17 changes: 15 additions & 2 deletions docker_conf/init
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ case "${PROTOCOL}" in
;;
esac

EPAS_APPLICATION_BASEURL="${PROTOCOL}:\/\/${VIRTUAL_HOST}"

DB_HOST=${DB_HOST:-postgres}
DB_PORT=${DB_PORT:-5432}
DB_NAME=${DB_NAME:-epas}
Expand Down Expand Up @@ -78,6 +76,21 @@ FLOWS_ACTIVE=${FLOWS_ACTIVE:-false}

cp ${APP_HOME}/docker_conf/prod.conf ${APP_HOME}/conf/

EPAS_APPLICATION_BASEURL="${PROTOCOL}:\/\/${VIRTUAL_HOST}"

# default HTTP_PATH = /
# Use this if you don't host your Play application at the root of the domain
# you're serving it from.
if [ -z ${HTTP_PATH} ]
then
EPAS_APPLICATION_BASEURL="${PROTOCOL}:\/\/${VIRTUAL_HOST}"
sed -n '/HTTP_PATH/!p' -i ${APP_HOME}/conf/prod.conf
else
EPAS_APPLICATION_BASEURL="${PROTOCOL}:\/\/${VIRTUAL_HOST}${HTTP_PATH}"
sed 's#{{HTTP_PATH}}#'"${HTTP_PATH}"'#' -i ${APP_HOME}/conf/prod.conf
echo "HTTP_PATH presente: ${HTTP_PATH}"
fi

sed 's#{{EPAS_APPLICATION_BASEURL}}#'"${EPAS_APPLICATION_BASEURL}"'#' -i ${APP_HOME}/conf/prod.conf
sed 's#{{DB_HOST}}#'"${DB_HOST}"'#' -i ${APP_HOME}/conf/prod.conf

Expand Down
1 change: 1 addition & 0 deletions docker_conf/prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

%prod.jobs.active={{JOBS_ACTIVE}}
%prod.application.baseUrl={{EPAS_APPLICATION_BASEURL}}
%prod.http.path={{HTTP_PATH}}
%prod.shib.login ={{EPAS_SHIB_LOGIN}}
%prod.skip.ip.check={{SKIP_IP_CHECK}}
%prod.flows.active={{FLOWS_ACTIVE}}
Expand Down
4 changes: 4 additions & 0 deletions docs/sysadmin/startup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ d'ambiente presenti nel `docker-compose.yml <https://github.com/consiglionaziona
La configurazione delle possibili modalità di autenticazione e la configurazione dei log
sono descritte nei paragrafi successivi.

Configurazione Application Secret
---------------------------------

**N.B.**
Si raccomanda di modificare la varibile d'ambiente **APPLICATION_SECRET** per impostare
una propria chiave univoca utilizzata nel funzioni di cifratura.
Expand All @@ -45,3 +48,4 @@ L'application secret può per esempio essere creato su Linux con questo comando:
.. code-block::
tr -dc A-Za-z0-9 < /dev/urandom | head -c 64 ; echo

0 comments on commit 072a367

Please sign in to comment.