1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Fixed nginx config

This commit is contained in:
anmol 2020-10-17 03:43:56 +05:30
parent c809e02dc6
commit 77d0749834
2 changed files with 3 additions and 5 deletions

View file

@ -3,7 +3,7 @@ location ^~ __PATH__/ {
# Path to source # Path to source
alias __FINALPATH__/public/; alias __FINALPATH__/public/;
# Force usage of https # Force usage of https
if ($scheme = http) { if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
@ -13,7 +13,7 @@ location ^~ __PATH__/ {
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M; #client_max_body_size 50M;
try_files $uri $uri/ @monica; try_files $uri $uri/ @monica;
location ~ \.php { location ~ \.php {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
@ -37,8 +37,7 @@ location @monica {
rewrite .well-known/security.txt$ __PATH__/security.txt permanent; rewrite .well-known/security.txt$ __PATH__/security.txt permanent;
# Old carddav url # Old carddav url
rewrite carddav/(.*) __PATH__/dav/$1 permanent; rewrite carddav/(.*) __PATH__/dav?/$1 permanent;
# rewrite all to index.php # rewrite all to index.php
rewrite ^(.*)$ __PATH__/index.php/$1 last;
} }

View file

@ -141,7 +141,6 @@ ynh_replace_string --match_string="language" --replace_string="$language" --targ
ynh_script_progression --message="Deploying..." ynh_script_progression --message="Deploying..."
pushd "$final_path" pushd "$final_path"
php$phpversion artisan monica:update --force
php$phpversion artisan setup:production --email=$email --password=$password -vvv -n php$phpversion artisan setup:production --email=$email --password=$password -vvv -n
php$phpversion artisan passport:client --password -n > key.txt php$phpversion artisan passport:client --password -n > key.txt
mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- ) mobile_id=$( cd $final_path && tail -2 key.txt | head -1 | cut -c 12- )