mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Fix
This commit is contained in:
parent
8babf3112c
commit
d1a82ef256
3 changed files with 14 additions and 20 deletions
|
@ -17,7 +17,7 @@ $db_port = 3306; // leave 0 for default or set your port
|
||||||
$db_user = '__DB_USER__';
|
$db_user = '__DB_USER__';
|
||||||
$db_pass = '__DB_PWD__';
|
$db_pass = '__DB_PWD__';
|
||||||
$db_data = '__DB_NAME__';
|
$db_data = '__DB_NAME__';
|
||||||
$db_type = mysql; // use 1 for postgres, 0 for mysql
|
$db_type = 'mysql'; // use 1 for postgres, 0 for mysql
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notice: Many of the following settings will be available in the admin panel
|
* Notice: Many of the following settings will be available in the admin panel
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
location / {
|
||||||
location __PATH__/ {
|
|
||||||
|
|
||||||
alias __FINALPATH__/;
|
alias __FINALPATH__/;
|
||||||
|
|
||||||
|
@ -15,13 +14,12 @@ location __PATH__/ {
|
||||||
|
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
location ~* \.php$
|
location ~* \.php$ {
|
||||||
{
|
try_files $uri =404;
|
||||||
try_files $uri =404;
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
fastcgi_index index.php;
|
||||||
fastcgi_index index.php;
|
include fastcgi_params;
|
||||||
include fastcgi_params;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# make sure webfinger and other well known services aren't blocked
|
# make sure webfinger and other well known services aren't blocked
|
||||||
|
@ -33,14 +31,10 @@ location __PATH__/ {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# statically serve these file types when possible
|
location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|map|ttf|woff|woff2|svg)$ {
|
||||||
# otherwise fall back to front controller
|
expires 30d;
|
||||||
# allow browser to cache them
|
try_files $uri /index.php;
|
||||||
# added .htm for advanced source code editor library
|
}
|
||||||
# location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|map|ttf|woff|woff2|svg)$ {
|
|
||||||
# expires 30d;
|
|
||||||
# try_files $uri /index.php?q=$uri&$args;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# block these file types
|
# block these file types
|
||||||
location ~* \.(tpl|md|tgz|log|out)$ {
|
location ~* \.(tpl|md|tgz|log|out)$ {
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
YNH_PHP_VERSION="8.0"
|
YNH_PHP_VERSION="7.4"
|
||||||
|
|
||||||
pkg_dependencies="php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-gd"
|
pkg_dependencies="php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-gd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
Loading…
Add table
Reference in a new issue