Migrate mastodon proxy to openresty

This commit is contained in:
Râu Cao
2023-07-26 15:44:04 +02:00
parent ad59913555
commit 15b2ea284a
5 changed files with 22 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ proxy_cache_path /var/cache/nginx/mastodon levels=1:2
max_size=1g inactive=120m use_temp_path=off;
server {
listen 443 ssl http2;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
listen [::]:443 ssl http2;
server_name <%= @server_name %>;
include <%= @shared_config_path %>;
@@ -36,12 +36,12 @@ server {
<% if @onion_address %>
server {
listen 80;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>80;
server_name mastodon.<%= @onion_address %>;
include <%= @shared_config_path %>;
}
server {
listen 443 ssl http2;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
server_name mastodon.<%= @onion_address %>;
include <%= @shared_config_path %>;