mirror of
https://github.com/YunoHost-Apps/syncserver-rs_ynh.git
synced 2024-09-03 20:26:32 +02:00
Use dedicated domain.
This commit is contained in:
parent
2b733e94a3
commit
834a6d56dd
3 changed files with 8 additions and 12 deletions
|
@ -32,17 +32,7 @@ ram.runtime = "50M"
|
|||
[install.domain]
|
||||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
||||
type = "domain"
|
||||
|
||||
[install.path]
|
||||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
||||
type = "path"
|
||||
default = "/syncserver"
|
||||
|
||||
[install.init_main_permission]
|
||||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
||||
# This won't be saved as setting and will instead be used to initialize the SSOwat permission
|
||||
type = "group"
|
||||
default = "visitors"
|
||||
full_domain = true
|
||||
|
||||
[resources]
|
||||
# See the packaging documentation for the full set
|
||||
|
@ -69,6 +59,8 @@ ram.runtime = "50M"
|
|||
[resources.permissions]
|
||||
main.url = "/"
|
||||
main.show_tile = false
|
||||
main.allowed = "visitors"
|
||||
main.protected = true
|
||||
|
||||
# This will pick a random port for reverse-proxying and store it as the $port setting
|
||||
[resources.ports]
|
||||
|
|
|
@ -31,7 +31,7 @@ ynh_change_url_nginx_config
|
|||
# Retarget worker nodes
|
||||
#=================================================
|
||||
|
||||
ynh_mysql_execute_as_root --sql="UPDATE nodes set node='https://$new_domain$new_path' node url='https://$old_domain$old_path'" --database="$db_name_tokenserver";
|
||||
ynh_mysql_execute_as_root --sql="UPDATE nodes set node='https://$new_domain' WHERE node='https://$old_domain'" --database="$db_name_tokenserver";
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -91,6 +91,10 @@ ynh_add_nginx_config
|
|||
|
||||
ynh_add_systemd_config
|
||||
|
||||
mkdir /var/log/$app
|
||||
touch /var/log/$app/$app.log
|
||||
chown -R $app: /var/log/$app
|
||||
|
||||
yunohost service add $app --description="Firefox Sync Server (Rust)" --log="/var/log/$app/$app.log"
|
||||
|
||||
# Use logrotate to manage application logfile(s)
|
||||
|
|
Loading…
Add table
Reference in a new issue