19 lines
504 B
Plaintext
19 lines
504 B
Plaintext
# Generated by Chef
|
|
|
|
server {
|
|
server_name <%= @domain %>;
|
|
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
root /var/www/<%= @domain %>/public;
|
|
|
|
access_log <%= node[:openresty][:log_dir] %>/<%= @domain %>.access.log;
|
|
error_log <%= node[:openresty][:log_dir] %>/<%= @domain %>.error.log warn;
|
|
|
|
gzip_static on;
|
|
gzip_comp_level 5;
|
|
|
|
ssl_certificate <%= @ssl_cert %>;
|
|
ssl_certificate_key <%= @ssl_key %>;
|
|
}
|