1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncserver-rs_ynh.git synced 2024-09-03 20:26:32 +02:00

Merge pull request #17 from YunoHost-Apps/url

Fixup URL.
This commit is contained in:
Mateusz 2023-11-02 00:05:43 +01:00 committed by GitHub
commit 1322299bde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 6 deletions

View file

@ -19,12 +19,13 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Second-generation server for Firefox Sync written in Rust.
**Shipped version:** 0.14.1
**Shipped version:** 0.14.1~ynh2
## Documentation and resources
* Official app website: <https://www.mozilla.org/en-GB/firefox/features/sync/>
* Official admin documentation: <https://github.com/mozilla-services/syncstorage-rs/blob/master/docs/config.md>
* Upstream app code repository: <https://github.com/mozilla-services/syncstorage-rs>
* YunoHost Store: <https://apps.yunohost.org/app/syncserver-rs>
* Report a bug: <https://github.com/YunoHost-Apps/syncserver-rs_ynh/issues>
## Developer info

View file

@ -19,12 +19,13 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Second-generation server for Firefox Sync written in Rust.
**Version incluse :** 0.14.1
**Version incluse :** 0.14.1~ynh2
## Documentations et ressources
* Site officiel de lapp : <https://www.mozilla.org/en-GB/firefox/features/sync/>
* Documentation officielle de ladmin : <https://github.com/mozilla-services/syncstorage-rs/blob/master/docs/config.md>
* Dépôt de code officiel de lapp : <https://github.com/mozilla-services/syncstorage-rs>
* YunoHost Store: <https://apps.yunohost.org/app/syncserver-rs>
* Signaler un bug : <https://github.com/YunoHost-Apps/syncserver-rs_ynh/issues>
## Informations pour les développeurs

View file

@ -1 +1 @@
Please open `about:config` in your Firefox and point `identity.sync.tokenserver.uri` to `__DOMAIN____PATH__`.
Please open `about:config` in your Firefox and point `identity.sync.tokenserver.uri` to `https://__DOMAIN__/1.0/sync/1.5`.

View file

@ -8,7 +8,7 @@ name = "Firefox SyncStorage"
description.en = "New Firefox Sync Storage implemented in Rust. Allows syncing tabs, passwords, history etc. between Firefox instances."
description.fr = "New Firefox Sync Storage implemented in Rust."
version = "0.14.1"
version = "0.14.1~ynh2"
maintainers = ["orhtej2"]

View file

@ -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' WHERE node='https://$old_domain'" --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

View file

@ -81,7 +81,7 @@ ynh_exec_as $app python -m venv "${install_dir}/venv"
ynh_mysql_execute_as_root --sql="INSERT INTO services (id, service, pattern) VALUES (1, 'sync-1.5', '{node}/1.5/{uid}')" --database="$db_name_tokenserver";
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH SYNC_TOKENSERVER__DATABASE_URL="mysql://$db_user:${db_pwd}@localhost/$db_name_tokenserver" $install_dir/venv/bin/python tools/tokenserver/add_node.py "https://$domain$path_url" 10
ynh_exec_warn_less ynh_exec_as $app env PATH=$PATH SYNC_TOKENSERVER__DATABASE_URL="mysql://$db_user:${db_pwd}@localhost/$db_name_tokenserver" $install_dir/venv/bin/python tools/tokenserver/add_node.py "https://${domain%%+(/)}" 10
popd
)