mirror of
https://github.com/YunoHost-Apps/yellow_ynh.git
synced 2024-09-03 20:36:12 +02:00
fix
This commit is contained in:
parent
f385e6ae8b
commit
14082f24a3
5 changed files with 19 additions and 19 deletions
|
@ -9,7 +9,7 @@
|
||||||
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
Quick description of this app.
|
Yellow is a CMS designed to make the creation of a website ultra-simple and easy to use. Yellow CMS does not require a database.
|
||||||
|
|
||||||
**Shipped version:** 0.8.16
|
**Shipped version:** 0.8.16
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ How to configure this app: From an admin panel, a plain file with SSH, or any ot
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/yellowcms_ynh/issues
|
* Report a bug: https://github.com/YunoHost-Apps/yellowcms_ynh/issues
|
||||||
* App website: https://datenstrom.se/yellow/
|
* App website: https://datenstrom.se/
|
||||||
* Upstream app repository: https://github.com/datenstrom/yellow/
|
* Upstream app repository: https://github.com/datenstrom/yellow/
|
||||||
* YunoHost website: https://yunohost.org/
|
* YunoHost website: https://yunohost.org/
|
||||||
|
|
||||||
|
|
|
@ -12,24 +12,24 @@
|
||||||
|
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location __PATH__/ {
|
location __PATH__/ {
|
||||||
|
|
||||||
alias __FINALPATH__/ ;
|
alias __FINALPATH__/ ;
|
||||||
|
|
||||||
|
# Force usage of https
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
|
|
||||||
index index.html yellow.php;
|
index index.html yellow.php;
|
||||||
|
|
||||||
|
|
||||||
#location __PATH__/ {
|
|
||||||
# if (!-e $request_filename) {
|
|
||||||
# rewrite ^/(.*)$ /yellow.php last;
|
|
||||||
# break;
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
if (!-e $request_filename) {
|
if (!-e $request_filename) {
|
||||||
rewrite ^(.*)$ /yellow.php last;
|
rewrite ^(.*)$ /yellow.php last;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
try_files $uri $uri/ index.php;
|
try_files $uri $uri/ yellow.php;
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||||
|
|
|
@ -88,7 +88,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R www-data:www-data $final_path
|
chown -R $app: $final_path
|
||||||
chmod -R a+rw $final_path
|
chmod -R a+rw $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -66,7 +66,7 @@ ynh_system_user_create --username=$app
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R www-data:www-data $final_path
|
chown -R $app: $final_path
|
||||||
chmod -R a+rw $final_path
|
chmod -R a+rw $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -104,7 +104,7 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R www-data:www-data $final_path
|
chown -R $app: $final_path
|
||||||
chmod -R a+rw $final_path
|
chmod -R a+rw $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue