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

86 commits

Author SHA1 Message Date
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
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
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
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
Josue-T
8789aa304d
Merge branch 'testing' into package_upgrade 2019-10-30 21:15:22 +01:00
Josué Tille
2d00cc922b
Merge remote-tracking branch 'upstream/testing' into package_upgrade 2019-09-10 20:15:48 +02:00
Josué Tille
c2e4d0ea5d
Add hook to restart synapse at each certificate update 2019-09-03 20:43:58 +02:00
Nouts
0dd1b0a09c add variable for default domain 2019-08-24 15:59:03 +02:00
Nouts
b7b465e245 fix wrong if set variable 2019-08-24 15:49:44 +02:00
Nouts
9a0a03f2f8 set default domain name 2019-08-24 15:38:14 +02:00
Nouts
f586ed6b25 Merge branch 'master' into choose-server-name 2019-07-31 20:50:27 +02:00
Josué Tille
2be94ede44
Install Jinja2 manually 2019-07-05 10:16:44 +02:00
Josué Tille
4486616434
Fix check of path availability 2019-06-09 22:38:21 +02:00
Josué Tille
adb96d2e4a
Add don't prind password in debug logs 2019-06-02 10:49:39 +02:00
Maniack Crudelis
1230d72a88
Merge branch 'testing' into package_upgrade 2019-05-20 17:29:36 +02:00
Josue-T
741d520f55
Fix typo
Co-Authored-By: JimboJoe <jimmy@monin.net>
2019-05-12 16:48:23 +02:00
Nouts
13d9025a11 rename signing.key by server_name 2019-05-11 15:01:17 +02:00
Nouts
ca6619eb71 several improvements from feedback 2019-05-11 14:45:00 +02:00
Josué Tille
dcfdbc3201
Use the sso script directly from the config directroy 2019-05-06 15:37:18 +02:00
nouts
dc9e7cef8b first working install 2019-05-04 13:49:19 +02:00
Maniack Crudelis
a2e19998d4 Normalization from example_ynh 2019-04-30 19:15:33 +02:00
Josue-T
7f78210783
Merge pull request #69 from YunoHost-Apps/config_panel
Config panel
2019-03-10 08:51:16 +01:00
JimboJoe
2a4533bc04 Fix typo
Co-Authored-By: Josue-T <josue@tille.ch>
2019-03-08 09:17:14 +01:00
Josué Tille
4bdd59384d Update doc for federation 2019-03-08 09:17:14 +01:00
Josué Tille
b5b9ee7712 Update Helper from Upstream 2019-03-08 09:16:25 +01:00
Josué Tille
b9faec521c Add fail2ban 2019-03-08 09:16:25 +01:00
Josué Tille
bd82449eae Fix ynh_check_starting 2019-03-08 09:14:35 +01:00
JimboJoe
23db8eb774
Fix typo
Co-Authored-By: Josue-T <josue@tille.ch>
2019-02-08 22:18:20 +01:00
Josué Tille
347a4dab37
Add public switch in config pannel 2019-02-08 20:22:52 +01:00
Josué Tille
0d9204ec95
Use the pip source for synapse 2019-02-08 15:21:48 +01:00
Josué Tille
d6332fb09b
Use the Yunohost certificate 2019-02-08 15:04:51 +01:00
Josué Tille
ca5bc8dba9
Fix wheel dependances 2019-01-19 23:19:14 +01:00
Josué Tille
5a539f01d2
Don't define $PS1 it's mangad by the activate script 2019-01-13 15:58:48 +01:00
Josué Tille
ee8e3b9545
Don't install virtualenv, venv is enough 2019-01-12 21:50:29 +01:00
Josué Tille
3ff83f5962 Migrate to python3 2019-01-04 10:26:03 +01:00
Josué Tille
4aa7ba9d04 Fix PS1 variable in upgrade and install script 2018-08-29 16:11:23 +02:00
Josue-T
b5d94991e6
Merge pull request #68 from YunoHost-Apps/Update_helpers
Update helpers
2018-08-25 10:30:42 +02:00
Josue-T
e27ecdbf11
Merge branch 'testing' into new_homeserver_config 2018-08-23 22:22:05 +02:00
Josué Tille
dc62daafdf Set executable coturn update config script 2018-08-23 22:19:18 +02:00
Jimmy Monin
5683336771 Typos fix 2018-08-21 07:27:01 +02:00
Josué Tille
f856455564 Fix typo 2018-08-04 23:11:12 +02:00
Josué Tille
282dd410d2 Update script for new config
- Add support for shared_secret, macaroon_secret, form_secret
- Use the own tls cert and keys
- Add possibility to enable the stats report
2018-08-04 23:11:12 +02:00
Josué Tille
5a8a3fb7d6 Add new setup_source helper 2018-08-03 22:40:34 +02:00
Jimmy Monin
e1065d80a8 Typos and misc fixes 2018-07-18 10:09:14 +02:00
Josué Tille
bc31ff4760 Update email notification 2018-07-18 10:09:14 +02:00
Josué Tille
f653a017bf Add a script to upgrade coturn config easly 2018-07-18 10:09:14 +02:00