Migrate nginx sites to openresty #511

Merged
greg merged 30 commits from chore/migrate_nginx_sites_to_openresty into master 2023-08-01 13:02:33 +00:00
Owner

Includes some minor openresty cookbook changes, which I pushed directly to its own repo's master branch as well.

Almost done. Left to do:

  • Decide what to do with streams (ejabberd, gitea ssh). Either add a resource to the openresty cookbook or move to haproxy (nicer, but not possible for UDP streams)
  • Tor (use same keys on all LBs; they will do a kind of HA, even though it's a slow failover and only 1 node will be connected to at any given time, i.e. the last one announcing itself on the network)

closes #510

Includes some minor openresty cookbook changes, which I pushed directly to its own repo's master branch as well. Almost done. Left to do: * [x] Decide what to do with streams (ejabberd, gitea ssh). Either add a resource to the openresty cookbook or move to haproxy (nicer, but not possible for UDP streams) * [x] Tor (use same keys on all LBs; they will do a kind of HA, even though it's a slow failover and only 1 node will be connected to at any given time, i.e. the last one announcing itself on the network) closes #510
raucao added 18 commits 2023-07-26 14:47:01 +00:00
raucao requested review from greg 2023-07-26 14:47:07 +00:00
greg reviewed 2023-07-28 12:26:02 +00:00
@ -6,3 +6,1 @@
include_recipe "kosmos-nginx"
file "/etc/nginx/conf.d/garage.conf" do
file "/etc/openresty/conf.d/garage.conf" do
Owner

Could use node['openresty']['dir'] here instead of hardcoding `/etc/openresty"

Could use `node['openresty']['dir']` here instead of hardcoding `/etc/openresty"
raucao marked this conversation as resolved
raucao added 1 commit 2023-07-29 12:31:12 +00:00
raucao added 1 commit 2023-07-29 14:26:57 +00:00
raucao added 2 commits 2023-07-30 10:35:43 +00:00
raucao added 2 commits 2023-07-30 10:40:37 +00:00
68b56789c5
Migrate ejabberd UDP streams to openresty
And remove the other streams in the process, in favor of running haproxy
on all LBs.
0f12a54eab
Refactor tor usage entirely
Use a custom resource and separate recipe for service configs with
pre-set keys and hostnames
greg was assigned by raucao 2023-07-30 10:41:48 +00:00
raucao self-assigned this 2023-07-30 10:41:49 +00:00
raucao added 2 commits 2023-07-31 13:07:58 +00:00
raucao added 4 commits 2023-07-31 13:57:30 +00:00
raucao added the
kredits-2
ops
labels 2023-07-31 13:58:02 +00:00
Author
Owner

All done and running in prod!

All done and running in prod!
greg approved these changes 2023-08-01 13:02:21 +00:00
greg left a comment
Owner

Looking good!

Looking good!
greg merged commit cc8264432c into master 2023-08-01 13:02:33 +00:00
greg deleted branch chore/migrate_nginx_sites_to_openresty 2023-08-01 13:02:33 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/chef#511
No description provided.