diff --git a/conf/app.src b/conf/app.src index 234cc57..9d8fd61 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,6 @@ -SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.7.tar.bz2 -SOURCE_SUM=659b1e2fada284f76d6a37f592c6e7068eb883bb8361392de207aff79ad53af7 + +SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.8.tar.bz2 +SOURCE_SUM=98aa01b86521ff66dcc951ab6f0eb1915e3cee5dada15ba20c96ab72512f1e83 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.bz2 SOURCE_IN_SUBDIR=true diff --git a/conf/nginx.conf b/conf/nginx.conf index 9b17fcc..30bfff0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,10 +4,11 @@ location __PATH__/ { # Path to source alias __FINALPATH__/www/ ; - if ($scheme = http) { +if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - + + # Protecting sensibles urls location ~ 403 { rewrite ^(.*)$ /include/ redirect; rewrite ^(.*)$ /cache/ redirect; @@ -19,13 +20,17 @@ location __PATH__/ { rewrite ^(.*)$ /config\.(.*)\.php redirect; } - try_files $uri $uri/ index.php /_route.php; + # Example PHP configuration (remove if not used) + location __PATH__/ { index index.php /_route.php; + try_files $uri $uri/ index.php /_route.php; + } location ~ [^/]\.php(/|$) { + try_files $uri $uri/ /_route.php; fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock; - fastcgi_index index.php; + # fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; @@ -35,6 +40,8 @@ location __PATH__/ { # Increase size limit client_max_body_size 2M; + # PHP configuration end + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } diff --git a/manifest.json b/manifest.json index 466e3c7..c2860ae 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Software to manage association", "fr": "Logiciel libre de gestion d'association" }, - "version": "0.9.7~ynh1", + "version": "0.9.8~ynh3", "url": "http://garradin.eu/a-propos/", "license": "GPL-3.0-or-later", "maintainer": {