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

Update nginx.conf (#41)

* Update nginx.conf

* Update install

* Update install

* Update install
This commit is contained in:
Éric Gaspar 2022-06-25 07:25:17 +02:00 committed by GitHub
parent d242eb7e47
commit 41cf5e1b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View file

@ -40,6 +40,22 @@ location __PATH__/ {
# (14400s is 4h) # (14400s is 4h)
} }
location ~ /\.ht {
deny all;
}
location ^~ /movim/log/ {
return 403;
}
location ^~ /movim/config/ {
return 403;
}
location ^~ /movim/?infos {
return 403;
}
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -161,8 +161,7 @@ ynh_exec_warn_less ynh_composer_exec --commands="movim:migrate"
set_date=$(date "+%F %T") set_date=$(date "+%F %T")
# In order to set an admin we must first set a user in the database # In order to set an admin we must first set a user in the database
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name <<< "INSERT INTO "users" ("id", "configuration", "language", "nightmode", "nsfw", "public", "created_at", "updated_at", "nickname", "chatmain", "notificationchat", "notificationcall", "admin") VALUES ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name <<< "INSERT INTO "users" ("id", "configuration", "language", "nightmode", "nsfw", "public", "created_at", "updated_at", "nickname", "chatmain", "notificationchat", "notificationcall", "admin") VALUES ('$email', NULL, 'fr', 'f', 'f', NULL, '$set_date', '$set_date', NULL, 'f', 't', 't', 'f');"
('$email', NULL, 'fr', 'f', 'f', NULL, '$set_date', '$set_date', NULL, 'f', 't', 't', 'f');"
# Now we set this user as an admin for Movim # Now we set this user as an admin for Movim
ynh_exec_as $app php$phpversion $final_path/daemon.php setAdmin $email ynh_exec_as $app php$phpversion $final_path/daemon.php setAdmin $email