mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
update garradin version and add protected uris in nginx.conf
This commit is contained in:
parent
0e87e6cfce
commit
16f3f2b4e5
3 changed files with 17 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.6.tar.bz2
|
||||
SOURCE_SUM=a0c4dcc6adc25a6f093bc09b0ed4c7efcbfde0726b790431c293112800ccc282
|
||||
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
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__ {
|
||||
|
||||
# Path to source
|
||||
alias __FINALPATH__/www/ ;
|
||||
|
||||
if ($scheme = http) {
|
||||
# Path to source
|
||||
alias __FINALPATH__/www/ ;
|
||||
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
|
||||
# Protecting sensibles urls
|
||||
location ~ 403 {
|
||||
rewrite ^(.*)$ /include/ redirect;
|
||||
rewrite ^(.*)$ /cache/ redirect;
|
||||
|
@ -19,13 +19,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 +39,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;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"fr": "Logiciel libre de gestion d'association"
|
||||
},
|
||||
|
||||
"version": "0.9.6~ynh3",
|
||||
"version": "0.9.8~ynh3",
|
||||
|
||||
"url": "http://garradin.eu/a-propos/",
|
||||
"license": "GPL-3.0-or-later",
|
||||
|
|
Loading…
Reference in a new issue