1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00
Commit graph

32 commits

Author SHA1 Message Date
Josué Tille
f4faaa5494
Fix undefined vars 2024-02-21 19:24:15 +01:00
Josué Tille
b2e2341ff1
Standardize unit name
This is in prevision for multiple services linked to the same app, so we can have something like $app-coturn, $app-slide-proxy, ...
2024-02-06 20:42:00 +01:00
Josué Tille
b435f316a2
Full rework of all scripts
- Adapt all script with packaging v2
- Rework cleanly control pannel and remove all replace in file as it's breaken after each update
- Cleanup
2023-11-01 18:52:07 +01:00
Josué Tille
3082db3801
Migrate with script 2023-10-31 22:19:40 +01:00
Éric Gaspar
011fc2a6c1 Fix typos and follow example_ynh template 2022-10-28 10:59:40 +02:00
yalh76
523099533a
Merge pull request #268 from YunoHost-Apps/smaller
Smaller
2021-08-14 20:48:35 +02:00
Josué Tille
98ddba8e05 Remove reference of php7.0 2021-06-28 20:38:30 +02:00
yalh76
e826d1a50d Remove logs during upgrade backup 2021-05-28 02:02:58 +02:00
Josué Tille
6ccdd95b12
Fix template helper 2021-02-18 19:05:04 +01:00
Josué Tille
bf5e61c816
Fix package linter and update install badge 2020-12-12 15:04:21 +01:00
Josué Tille
e4158175a2
Implement backup core only 2020-12-07 17:04:22 +01:00
Josué Tille
692f39f486
Fix package linter 2020-11-18 00:04:01 +01:00
Josué Tille
2f370d79bc
Fix backup 2020-02-22 21:03:48 +01:00
Josué Tille
f9a381bf0a
Create small CAS server for SSO authentication 2020-02-22 00:50:18 +01:00
Josué Tille
a6eb228585
Replace special_domain and special_path by domain and path 2019-12-14 15:12:43 +01:00
Thatoo
663ae2c352 well-known support (#136)
* Update README.md

* Update manifest.json

* a

* Delete a

* avoid boolean for public but ask a clear choice Yes/No

* Update check_process

Add server_name="domain2.tld"    (DOMAIN)

* .well-known

DNS conf become optionnal with .well-known edition

* .well-known redirection for access by federation

Create .well-known redirection for access by federation

* .well-known redirection for access by federation

If not existing, create .well-known redirection for access by federation

* Update README.md

back to 0.99.5.2

* back to 0.99.5.2

* back to 0.99.5.2

* back to 0.99.5.2

* Update install

* Update upgrade

* Update install

* Update upgrade

* Update install

* Update upgrade

* Update .well-known redirection

for access by federation and applications like Riot.im

* Update .well-known redirection

for access by federation and applications like Riot.im

* update to 1.1.0

* update to 1.1.0

* update to 1.1.0

* update to 1.1.0

* update to 1.1.0

* update to 1.1.0

* Update install

* Update upgrade

* Update to 1.2.1

* Update to 1.2.1

* Update to 1.2.1

* Back to v1.1.0

* Back to v1.1.0

* Back to v1.1.0

* Update to v1.2.1

* Update to v1.2.1

* Update to v1.2.1

* Important update of upgrade script

ynh_replace_string __SERVER_NAME__ $server_name "$homeserver_config_path" was missing

* Back to v1.1.0

* Back to v1.1.0

* Back to v1.1.0

* Fix typo for ipv6 validation

* Upgrade to v1.2.1

* Upgrade to v1.2.1

* Upgrade to v1.2.1

* remove server_name's nginx conf

remove /etc/nginx/conf.d/${server_name}.d/server_name.conf

* Create server_name.conf

To allow the automatic well-known system for server-name detection instead of DNS record

* Update install

In
# Create .well-known redirection for access by federation
change
  cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
    location /.well-known/matrix/ {
        return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}';
        add_header Content-Type application/json;
        add_header Access-Control-Allow-Origin '*';
        }
EOF
to 
cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf
after creation of ../conf/server_name.conf file.

* Update upgrade

In
# Create .well-known redirection for access by federation if it doesn't exist
change
  cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
    location /.well-known/matrix/ {
        return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}';
        add_header Content-Type application/json;
        add_header Access-Control-Allow-Origin '*';
        }
EOF
to
cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf

* backup well.known server_name nginx cond

add
ynh_backup "/etc/nginx/conf.d/${server_name}.d/server_name.conf"

* Backup well.known server-name nging conf

add
server_name=$(ynh_app_setting_get $app server_name) 
to make
ynh_backup "/etc/nginx/conf.d/${server_name}.d/server_name.conf"
understood

* Update backup

* Update scripts/install

Co-Authored-By: Josue-T <josue@tille.ch>

* Update install

* Update README.md

Co-Authored-By: Josue-T <josue@tille.ch>

* Update scripts/upgrade

Co-Authored-By: Josue-T <josue@tille.ch>

* Update conf/server_name.conf

Co-Authored-By: Josue-T <josue@tille.ch>

* move .well-known redirection to config section

move #Create .well-known redirection for access by federation to end of config section

* move .well-known redirection to config section 

move #Create .well-known redirection to the end of config section and Indentation

* add checksum management for server_name.conf

add checksum management for server_name.conf with the helper ynh_store_file_checksum

* add checksum management for server_name.conf

add checksum management for server_name.conf with the helper ynh_store_file_checksum

* replace __SERVER_NAME__

* replace __SERVER_NAME__

* delete a blank line

* Update upgrade

* Update install

* Update check_process

Co-Authored-By: Josue-T <josue@tille.ch>

* Update conf/server_name.conf

Co-Authored-By: Josue-T <josue@tille.ch>

* remove blank line

* ynh_store_file_checksum after cp inside if block

* change order checksum and cp

change order to ynh_backup_if_checksum_is_different then cp then ynh_store_file_checksum

* Update install

* Update upgrade

* Update backup

* Update backup

* Update scripts/backup

Co-Authored-By: Josue-T <josue@tille.ch>

* Update scripts/install

Co-Authored-By: Josue-T <josue@tille.ch>

* Update scripts/install

Co-Authored-By: Josue-T <josue@tille.ch>

* Update scripts/install

Co-Authored-By: Josue-T <josue@tille.ch>

* Update install

* Update remove

* Update upgrade
2019-12-01 22:18:56 +01:00
Josue-T
e2ed306fb9
Merge branch 'testing' into cert_hook 2019-11-01 20:32:46 +01:00
Josué Tille
c2e4d0ea5d
Add hook to restart synapse at each certificate update 2019-09-03 20:43:58 +02:00
Josué Tille
a47b8f6c9f
Remove --is-big flag in backup 2019-06-09 21:33:18 +02:00
Maniack Crudelis
a2e19998d4 Normalization from example_ynh 2019-04-30 19:15:33 +02:00
Josué Tille
b9faec521c Add fail2ban 2019-03-08 09:16:25 +01:00
Josué Tille
599f28a600 Get actual IP for coturn in restore script 2018-07-18 10:09:14 +02:00
Josué Tille
753e0b5de5 Clean ynh_backup fonction 2018-02-12 18:13:44 +01:00
Josué Tille
effd809a22 Fix backup / restore 2018-02-12 10:49:11 +01:00
Josué Tille
e145ef1e42 Update script for official audit 2018-01-31 23:06:06 +01:00
Josué Tille
a0b756446f Improve package
- Use systemd helper
- Use official version syntax
- Use app_package_version helper
- Put all experimental helper in specific file
2018-01-26 21:47:43 +01:00
Josué Tille
2473f90c5c Full upgrade
- Add multi instance support
- Remove offical helper in common.sh
- Improve turnserver config
- Update checkprocess
- Check synapse is fully started before the end script
- Use helper nginx ynh_add_nginx_config
2018-01-21 14:09:40 +01:00
Josué Tille
45007ecb53 Fix logrotate and helper ynh_install_app_dependencies 2017-12-15 22:55:52 +01:00
Josué Tille
ba4cadcb04 Solve Backup / restore Issue 2017-10-21 01:31:04 +02:00
Josué Tille
469b6dc07b Use new helper, migrate to postgresql, use virtualenvionement 2017-07-21 22:28:49 +02:00
Josué Tille
930536f4d2 Clean common script and update turnserver config 2017-02-16 22:54:57 +01:00
Josué Tille
0a7d42c3b5 First commit 2017-02-13 20:43:41 +01:00