We have multiple server blocks that have duplicated code. According to the nginx docs, we can use regex to grab the subdomain and use it as a variable.
https://nginx.org/en/docs/http/server_names.html

This looks easy, but every time I think that I break access to the site, so I'll open this up to someone else if they want to work on it until I have the time to get it working.
We have multiple server blocks that have duplicated code. According to the nginx docs, we can use regex to grab the subdomain and use it as a variable.
https://nginx.org/en/docs/http/server_names.html

This looks easy, but every time I think that I break access to the site, so I'll open this up to someone else if they want to work on it until I have the time to get it working.