Râu Cao raucao
  • Joined on 2018-11-24
raucao pushed to chore/ejabberd-2_vm at kosmos/chef 2020-11-25 20:05:09 +00:00
58854da648 Add erland_node fqdn to ejabberd node configs
137d90ed8a Configure ejabberd on ejabberd-2
8c60279fe1 Add cluster configs to ejabberd recipe
Compare 3 commits »
raucao pushed to chore/ejabberd-2_vm at kosmos/chef 2020-11-25 16:40:45 +00:00
7a1a5c03e3 Set up ejabberd-2 VM
097013792b Set up ejabberd-2 VM
8e067e8901 Merge pull request 'Enable ejabberd clustering' (#246) from feature/243-ejabberd_cluster into master
bbf01711f8 Add ejabberd-1 client and node file
fbd71204c2 Use the production run list when no Chef environment was set
Compare 12 commits »
raucao created pull request kosmos/chef#248 2020-11-25 16:31:35 +00:00
WIP: Set up ejabberd-2 VM/node
raucao pushed to chore/ejabberd-2_vm at kosmos/chef 2020-11-25 16:31:05 +00:00
097013792b Set up ejabberd-2 VM
raucao opened issue kosmos/chef#247 2020-11-25 16:14:51 +00:00
Deploy our own zerotier-one network controller
raucao deleted branch feature/243-ejabberd_cluster from kosmos/chef 2020-11-25 16:10:19 +00:00
raucao closed issue kosmos/chef#240 2020-11-25 16:10:14 +00:00
HAProxy cannot bind STUN port anymore
raucao pushed to master at kosmos/chef 2020-11-25 16:10:14 +00:00
8e067e8901 Merge pull request 'Enable ejabberd clustering' (#246) from feature/243-ejabberd_cluster into master
bbf01711f8 Add ejabberd-1 client and node file
fbd71204c2 Use the production run list when no Chef environment was set
613b316588 Add comment about needing to run Chef a second time...
3a8af26b5f Remove firewall rule for an unused port
Compare 10 commits »
raucao merged pull request kosmos/chef#246 2020-11-25 16:10:14 +00:00
Enable ejabberd clustering
raucao closed issue kosmos/chef#243 2020-11-25 16:10:14 +00:00
Finish setting up ejabberd cluster
raucao commented on pull request kosmos/chef#246 2020-11-25 16:10:10 +00:00
Enable ejabberd clustering

🚀 🎉

raucao opened issue kosmos/akkounts#8 2020-11-25 16:01:51 +00:00
Time limit for inactive sessions
raucao deleted branch feature/http_upload_service from kosmos/chef 2020-11-25 11:43:44 +00:00
raucao pushed to feature/http_upload_service at kosmos/chef 2020-11-24 14:45:17 +00:00
f39f953b8a Configure ejabberd nodes for HTTP upload service
raucao commented on pull request kosmos/chef#245 2020-11-24 14:34:18 +00:00
Configure/deploy HTTP upload service for Kosmos Chat/XMPP

I have solved the last remaining issue, by moving the upload config to the respective vhosts config files and configuring a subdirectory (just hash of respective user address domain).

Here's my successful production test: https://uploads.kosmos.chat/8af2c77/791c7ed148e453f934ef56e1a4acb79a30845f0f/iMNpkgBBCLOpmQoHX5TqhQKUbZG4gHHDlPm0cva2/japan-map-in-english.jpeg

raucao pushed to feature/http_upload_service at kosmos/chef 2020-11-24 14:34:09 +00:00
0e29c930ed Configure subdirectory level for upload.pm
raucao commented on pull request kosmos/chef#245 2020-11-23 20:15:38 +00:00
Configure/deploy HTTP upload service for Kosmos Chat/XMPP

Ugh, that's dumb: ejabberd accepted my config with reload_config and then just failed when I removed the second cluster node, as well as when actually restarting it. Saying it cannot configure http uploads without @host variable when using multiple vhosts. :/

There's an option to configure subdirectory levels in upload.pm, but I've been at it for almost 12 hours straight now, so that'll have to wait until tomorrow.

raucao commented on pull request kosmos/chef#245 2020-11-23 20:00:52 +00:00
Configure/deploy HTTP upload service for Kosmos Chat/XMPP

I tried it with the new cluster node (after fixing iptables being weird on draco after the recent reboot), and when I got it working I manually added the config on andromeda, which we cannot provision with chef anymore.

All uploads now go to uploads-1 on draco! Here's my first production test:

https://uploads.kosmos.chat/791c7ed148e453f934ef56e1a4acb79a30845f0f/8SBtwY2eToAhPIaAy0IKaWUTNVH0oBwNh38k8crs/chilis.jpeg

raucao pushed to feature/http_upload_service at kosmos/chef 2020-11-23 19:50:29 +00:00
0aef830aa3 Fix upload folder permissions
raucao commented on issue kosmos/chef#240 2020-11-23 17:16:57 +00:00
HAProxy cannot bind STUN port anymore

I commented that entry in haproxy.cfg for now, meaning audio/video calls via XMPP signaling are more likely to fail until this is fixed.

Actually, we're not using the node on draco in production yet, so there's currently no problem. It only becomes an issue when we roll out the cluster.