Sha256: 7c71b993fd13ffe07b69d9a228d71a60d2cd1a2e1cc43c40cb41f0c48db35131
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
# Redirect - Page server { listen 80; server_name <%= Array(fetch(:redirect_old_domains)).join(joiner) %>; root <%= "#{ fetch(:redirect_index_parent, shared_path) }/#{ fetch(:redirect_index_path, 'redirector') }" %>; # location ~ /.well-known { allow all; } # lets-encrypt path location ~ /.well-known { allow all; root <%= current_path %>/public; } # SPA-routing location / { try_files /index.html; } } <% if Array(fetch(:redirect_old_ssl_domains, [])).any? %> server { listen 443 ssl http2; ssl on; ssl_certificate <%= fetch(:redirect_ssl_cert) %>; ssl_certificate_key <%= fetch(:redirect_ssl_key) %>; <%= magic_render("nginx/diffie_hellman") %> server_name <%= Array(fetch(:redirect_old_ssl_domains)).join(joiner) %>; root <%= "#{ fetch(:redirect_index_parent, shared_path) }/#{ fetch(:redirect_index_path, 'redirector') }" %>; # location ~ /.well-known { allow all; } # lets-encrypt path location ~ /.well-known { allow all; root <%= current_path %>/public; } # SPA-routing location / { try_files /index.html; } } <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems