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

397 commits

Author SHA1 Message Date
rosbeef andino
fcdd1d1f4f
Update upgrade 2023-01-30 17:08:00 +00:00
rosbeef andino
d5869bdb36
Update install 2023-01-30 17:00:49 +00:00
gredin67
75349b38b7 restructure allowed_local_3pids 2023-01-19 10:08:18 +01:00
Gredin67
5d6efa05b7
Apply suggestions from code review
Co-authored-by: Josue-T <josue@tille.ch>
2023-01-18 15:20:11 +01:00
Josue-T
42fe0302b3
Merge pull request #360 from Gredin67/fix-sso-client-whithelist-generation
Fix lists in config
2023-01-15 12:53:41 +01:00
gredin67
af225f6201 Merge branch 'master' into config-panel 2023-01-14 12:50:23 +01:00
gredin67
84eb157391 config max_upload_size 2023-01-13 12:38:30 +01:00
Josue-T
500bb6538a
force attrs version too 2023-01-13 08:16:02 +01:00
Gredin67
4da1cb0f11
remove unnecessary replace_string 2023-01-12 18:47:17 +01:00
Josue-T
13973bfc84
Merge pull request #358 from YunoHost-Apps/fix_issue_335
Fix upgrade with old pyopenssl
2023-01-12 08:02:02 +01:00
gredin67
5e939bada8 yeepy! 2023-01-11 18:31:49 +01:00
gredin67
3af6cc79e9 typotypo 2023-01-11 18:13:23 +01:00
gredin67
36df907490 tyyyyyyyyyyyyyy 2023-01-11 17:52:30 +01:00
gredin67
5ee7ed4f22 typo 2023-01-11 17:42:10 +01:00
gredin67
fa02d4e9c0 typo 2023-01-11 17:36:28 +01:00
gredin67
e6a6fffef1 typo 2023-01-11 17:21:45 +01:00
gredin67
3ced5e2a7c clean config init 2023-01-11 17:11:43 +01:00
gredin67
2cabc70378 erase custom config panel 2023-01-11 15:02:48 +01:00
gredin67
7ada897751 init allow_regis at upgrade 2023-01-11 14:53:53 +01:00
gredin67
56ad01bdb9 client urls 2023-01-11 14:03:52 +01:00
Gredin67
b28486fcd5
correst string compare syntax 2023-01-11 12:29:02 +01:00
Gredin67
2462d89af1
disable password if registration disabled 2023-01-10 18:22:38 +01:00
gredin67
e853d00dc2 fix coturn.conf external-ip 2023-01-10 17:57:44 +01:00
Carlos Solís
39ffead3a9 Make user creation script depend on YNH version
The format used to create a new user on YunoHost 11.1 and above is different than the one used beforehand. This change is intended to detect which version is currently installed and use the correct format.
2023-01-10 09:56:15 -06:00
gredin67
f58c330fe9 e2e default 2023-01-10 16:49:36 +01:00
Gredin67
e8ddae15d8
e2e_enabled_by_default [all,invite,off] 2023-01-10 16:36:46 +01:00
Gredin67
eb51ba4e8b
correct init e2e_default 2023-01-10 15:26:29 +01:00
Gredin67
2915167b7c
correct __FOOBAR__ init 2023-01-10 12:37:02 +01:00
Gredin67
04a2760423
give auto_join_rooms default 2023-01-10 04:14:11 +01:00
Gredin67
6678d886ce
Update upgrade 2023-01-10 02:07:48 +01:00
Gredin67
45f272140f
Update install 2023-01-10 02:05:30 +01:00
Gredin67
5dbf9f89dd
matrix.to 2023-01-10 00:20:52 +01:00
Gredin67
24044b0ecd
default to matrix.to 2023-01-09 23:26:39 +01:00
Carlos Solís
d3694bcc55 Fix issue with user creation script
In recent versions, YunoHost has deprecated the parameters "-f FIRSTNAME" and "-l LASTNAME", substituting them with "-F FULLNAME" instead. Without this patch, newer versions of YunoHost will output an error message, "WARNING - Not a tty, can't do interactive prompts", and fail installing or upgrading.
2023-01-09 11:12:22 -06:00
Gredin67
8e153d4fd6
Update upgrade 2023-01-09 12:03:14 +01:00
Gredin67
c7208ce272
Update install 2023-01-09 12:02:56 +01:00
Josue-T
f3b89ccce4
Update _common.sh 2023-01-09 12:01:04 +01:00
Gredin67
2b3cf8c331
revert remove jitsi setting 2023-01-06 17:34:41 +01:00
Gredin 67
d0efc856de https element url 2023-01-06 14:48:08 +01:00
Gredin 67
cbebfa9557 imrove config panel 2023-01-06 14:38:14 +01:00
Éric Gaspar
011fc2a6c1 Fix typos and follow example_ynh template 2022-10-28 10:59:40 +02:00
Éric Gaspar
eecdb6d356 Silent warnings 2022-10-28 10:50:43 +02:00
Josue-T
4c9ff8dd07
Update scripts/install 2022-10-24 10:53:52 +02:00
Josue-T
334d100cf4
Update scripts/upgrade 2022-10-24 10:53:38 +02:00
tituspijean
2e06f532e9
Merge branch 'testing' into fix-changeurl 2022-09-20 21:14:42 +02:00
tituspijean
752f2d3bf6
No need to change permissions
Co-authored-by: Josué Tille <josue@tille.ch>
2022-09-20 21:11:07 +02:00
tituspijean
8e3f7d978c
Handle /_synapse permission in change_url too 2022-09-18 12:29:28 +02:00
tituspijean
678dea3213
Add /_synapse path permission for administration API 2022-09-18 12:26:00 +02:00
Josué Tille
acb6125509
Fix install 2022-09-15 17:36:12 +02:00
François Magimel
e53b469ff1 fix(conf): start a new line for each domain to whitelist
When generating the domain list for the option `sso/client_whitelist`,
the line break is taken into account to create a real list of URLs.
2022-09-14 01:19:39 +02:00
Josué Tille
2c0266f6bf
Fix email configuration 2022-06-24 13:10:44 +02:00
Josué Tille
43f16d8898
Fix typo 2022-06-17 07:56:52 +02:00
Josué Tille
d7e9813f9b
Fix install on bullseye 2022-05-28 14:18:14 +02:00
Josué Tille
45a06ac69a
Update configuration from upstream 2022-05-28 00:19:44 +02:00
Josué Tille
dc8319dc04
Fix install 2022-05-26 17:27:30 +02:00
Josué Tille
388ebabf39
Fix warning and create yunohost user for ldap filter and send email correctly 2022-05-26 17:19:33 +02:00
Josué Tille
e5f93690db
Fix linter warning 2022-05-26 16:41:22 +02:00
tituspijean
e3b992c8e9
Fix change_url's ynh_permission_url parameters 2022-02-21 21:03:01 +01:00
Alexandre Aubin
99d3c74ca7
Merge branch 'testing' into update_pip 2021-10-27 19:23:02 +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
ericgaspar
e531a38ecb
Silence warnings 2021-06-04 21:21:42 +02:00
Jeremy Vagnet
4090d7121e server_client_infos permission should not be used if the the .well-known is hosted on a third party server 2021-06-02 19:38:53 +02:00
yalh76
e826d1a50d Remove logs during upgrade backup 2021-05-28 02:02:58 +02:00
yalh76
301346ee95 remove rustup after build 2021-05-27 13:51:28 +02:00
Josué Tille
606509f134
Fix issue #259 2021-05-09 15:25:02 +02:00
Josué Tille
609748c5e2
Fix cryptography dependances 2021-04-26 15:42:02 +02:00
Josué Tille
a5d2bc6560
Fix issue #248 and #244 2021-04-05 12:55:40 +02:00
Josué Tille
7a955759d3
Bypass error in linter 2021-04-03 11:54:33 +02:00
Josué Tille
b59cbccb84
Don't override label for main permission 2021-03-31 21:49:44 +02:00
Josué Tille
6af8567e26
fix twisted version 2021-03-30 21:50:01 +02:00
Jonathan Passerat-Palmbach
abde99104d fix: remove only virtual environment file in install_sources 2021-03-19 15:48:35 +00:00
Jonathan Passerat-Palmbach
d821055ee9 fix: update pip instead of installing Rust to fetch cryptography wheel 2021-03-19 11:38:37 +00:00
Josué Tille
c3188f8da0
Fix unbound variable 2021-03-16 15:53:45 +01:00
Josué Tille
d4ede98e21
Fix CI errors 2021-03-15 11:54:27 +01:00
Josué Tille
284f6b93de
Fix issues on home dir path management 2021-03-14 15:25:48 +01:00
Josué Tille
8ebe0d359b
Fix bypass linter 2021-03-12 21:10:48 +01:00
Josué Tille
021f296356
Try fix check_process 2021-03-12 20:08:14 +01:00
Josué Tille
afa2f76548
Bypass linter 2021-03-07 19:17:09 +01:00
Josué Tille
0f6c243f80
Fix some small issues and remove hardcoded version of PHP 2021-03-07 17:58:57 +01:00
Josué Tille
6ccdd95b12
Fix template helper 2021-02-18 19:05:04 +01:00
Josué Tille
181f1e0551
Merge branch 'fix_crypto_build' into permission 2021-02-15 15:50:02 +01:00
Josué Tille
b3f27311a7
Update clean persistent scripts 2021-02-14 15:20:07 +01:00
Josué Tille
ce034fb750
Install rust to fix cryptography build 2021-02-13 14:30:29 +01:00
Josué Tille
6db9afe60c
Improve permissions 2021-02-08 22:31:04 +01:00
Josué Tille
5f2ee05c4c
Implement group permission support and use new helper for config file 2021-01-26 22:06:15 +01:00
Josué Tille
0c17d7dece
Fix dependances 2021-01-18 19:46:41 +01:00
Josué Tille
ce99168ba3
Add ability to disable e2e encryption by default for DM 2020-12-12 16:12:39 +01:00
Josué Tille
bf5e61c816
Fix package linter and update install badge 2020-12-12 15:04:21 +01:00
Josué Tille
5d67006818
Move data directory also if destination exist 2020-12-10 23:56:05 +01:00
Josué Tille
599b808e60
Upgrade synapse to 1.23.1 2020-12-10 23:41:42 +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
5b826589bf
Fix missing app-service config file 2020-10-06 22:28:23 +02:00
Josué Tille
42a60c24c0
Backup nginx config if edited 2020-09-26 16:40:24 +02:00
Gredin67
cf5e62a105
create /etc/matrix-$app/app-service when restoring 2020-09-20 13:58:22 +02:00
Gredin67
51e4a27875
Update scripts/upgrade
Co-authored-by: Josue-T <josue@tille.ch>
2020-09-18 22:17:22 +02:00
Gredin67
2711bd643a
upgrade ensures app-service folder exists 2020-09-15 22:44:09 +02:00
Gredin67
a05b4909c3
add app-service registration folder 2020-09-13 20:23:55 +02:00
Josué Tille
a0bce0e2be
Remove alt_tls_port in diagnosis 2020-08-23 10:03:10 +02:00
Josué Tille
108dd2b623
Force upgrade of source if python version is not good 2020-08-02 23:47:45 +02:00
Josué Tille
b4ab782fba
Fix restore script 2020-08-01 14:17:33 +02:00
Josué Tille
f7a860dbbd
Fix issues on upgrade of major debian version 2020-07-30 22:05:01 +02:00
Josué Tille
2d14c10c53
Add appservice support 2020-07-24 23:42:13 +02:00
Josué Tille
4102871ef5
Add port exposition in diagosis 2020-07-24 23:42:12 +02:00
Josué Tille
c2620569be
Fix config panel 2020-05-29 23:13:07 +02:00
Josué Tille
ac78f19224
Fix and improve coturn config 2020-05-20 23:41:24 +02:00
Josué Tille
e8692c7bc1
Fix log file brocken after running config panel 2020-05-07 14:53:01 +02:00
Josué Tille
e47b2d939e
Add possibility to customize jitsi server and fix config pannel 2020-05-07 14:41:35 +02:00
Josué Tille
8533a8254d
Disable SSO in public mode 2020-05-07 11:01:36 +02:00
Josué Tille
669be06eaa
Don't use pipupgrade for now 2020-04-21 21:11:47 +02:00
Josué Tille
8caa135d57
Fix pipupgrade 2020-04-06 09:51:21 +02:00
Josué Tille
d2a48d9146
Fix install - upgrade on arm 2020-04-03 15:36:21 +02:00
Josué Tille
b0f6535458
Merge branch 'testing' into v1.12 2020-04-03 11:17:18 +02:00
Josue-T
ddf0b57b0a
Update scripts/change_url
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2020-03-31 12:05:05 +02:00
Josué Tille
91aafe7d42
Rework remove_sso_conf script 2020-03-31 10:54:44 +02:00
Josué Tille
48d0e3a6e7
Use pipupgrade to update all python package 2020-03-25 15:26:57 +01:00
Josué Tille
fdd5b7f396
Fix SSO script 2020-03-17 23:31:08 +01:00
Josué Tille
e0072ab1cf
Merge branch 'testing' into sso 2020-03-14 14:35:52 +01:00
Josué Tille
70b322f6e1
Add support for .well_known access 2020-03-14 14:35:20 +01:00
Josué Tille
874d68f653
Fix "if" condition" 2020-03-06 21:41:56 +01:00
Josué Tille
26b84e6e51
Fix "if" condition" 2020-02-25 23:12:02 +01:00
Josué Tille
2f370d79bc
Fix backup 2020-02-22 21:03:48 +01:00
Josué Tille
2b4152c70b
Specify the domain in permission definition 2020-02-22 21:03:33 +01:00
Josué Tille
875638ff36
Use permission to protectect CAS server access 2020-02-22 00:50:19 +01:00
Josué Tille
f9a381bf0a
Create small CAS server for SSO authentication 2020-02-22 00:50:18 +01:00
Josue-T
50c9463d96
Update scripts/upgrade
Co-Authored-By: JimboJoe <jimmy@monin.net>
2020-02-19 22:15:20 +01:00
Josué Tille
d7316c7093
Remove old venv files 2020-01-26 16:18:47 +01:00
Josué Tille
a393698f19
Fix settings migration 2019-12-18 20:50:48 +01:00
Josué Tille
4d88fe3033
Fix argument in upgrade 2019-12-18 20:36:05 +01:00
Josué Tille
ac7d2bb35b
Create change-url script 2019-12-14 15:30:27 +01:00
Josué Tille
11aabdf5c9
Move well-known config in nginx section 2019-12-14 15:14:27 +01:00
Josué Tille
a6eb228585
Replace special_domain and special_path by domain and path 2019-12-14 15:12:43 +01:00
Josué Tille
e2939fbbbb
Fix config pannel script 2019-12-14 12:02:49 +01:00
Josué Tille
bd2b63f86d
Merge branch 'testing' into block_public_rooms 2019-12-01 22:28:17 +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
Josué Tille
34970967bf
Use ynh_return instead of echo 2019-11-28 22:49:17 +01:00
Josue-T
36d89e888d
Use ynh_return instead of echo
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2019-11-28 22:44:05 +01:00
Josué Tille
78ddcb1703
Fix config panel 2019-11-23 22:22:29 +01:00
Josué Tille
d3eb059a90
Export to YNH_STDRETURN result of config 2019-11-23 22:04:45 +01:00
Josué Tille
2220be97b1
Make more strong secret detection 2019-11-19 20:29:48 +01:00
Josué Tille
d35541818f
Use ynh_replace_special_string for all password 2019-11-19 20:23:22 +01:00
Josué Tille
028784a902
Fix config pannel 2019-11-13 22:33:31 +01:00
Josué Tille
ac3218a316
Fix form_secret wrongly generated 2019-11-13 21:15:59 +01:00
Josué Tille
e5f908e56e
Let's manage the macaroon secret with the package 2019-11-13 21:15:58 +01:00
Josué Tille
2c930a8989
Add public room access option 2019-11-12 22:01:32 +01:00
Josue-T
dbfe7d3ed0
Merge pull request #148 from YunoHost-Apps/cert_hook
Cert hook
2019-11-08 23:33:51 +01:00
Josué Tille
6d99ec5dbe
Fix log rotation 2019-11-04 20:36:37 +01:00
Josue-T
e2ed306fb9
Merge branch 'testing' into cert_hook 2019-11-01 20:32:46 +01:00
Josué Tille
632ca35958
Update logrotate helper 2019-10-30 21:19:33 +01:00