Migrate static website to openresty

This commit is contained in:
Râu Cao
2023-07-26 14:15:22 +02:00
parent 4d528d67ef
commit 1681942fb1
4 changed files with 12 additions and 23 deletions

View File

@@ -1,12 +1,11 @@
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
# Generated by Chef
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name <%= @domain %>;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
listen [::]:443 ssl http2;
root /var/www/<%= @domain %>/site/public;
root /var/www/<%= @domain %>/public;
access_log off;
gzip_static on;
@@ -29,4 +28,3 @@ server {
proxy_pass https://accounts.kosmos.org;
}
}
<% end -%>