1
0
Fork 0
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:
orhtej2 2023-10-23 21:31:19 +02:00
parent 2b733e94a3
commit 834a6d56dd
3 changed files with 8 additions and 12 deletions

View file

@ -32,17 +32,7 @@ ram.runtime = "50M"
[install.domain] [install.domain]
# this is a generic question - ask strings are automatically handled by YunoHost's core # this is a generic question - ask strings are automatically handled by YunoHost's core
type = "domain" type = "domain"
full_domain = true
[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"
[resources] [resources]
# See the packaging documentation for the full set # See the packaging documentation for the full set
@ -69,6 +59,8 @@ ram.runtime = "50M"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"
main.show_tile = false 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 # This will pick a random port for reverse-proxying and store it as the $port setting
[resources.ports] [resources.ports]

View file

@ -31,7 +31,7 @@ ynh_change_url_nginx_config
# Retarget worker nodes # 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 # GENERIC FINALISATION

View file

@ -91,6 +91,10 @@ ynh_add_nginx_config
ynh_add_systemd_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" yunohost service add $app --description="Firefox Sync Server (Rust)" --log="/var/log/$app/$app.log"
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)