Fix nginx config, deploy LE cert

This commit is contained in:
2021-11-29 13:33:43 -06:00
parent e414dfc23f
commit 0e1b362644
2 changed files with 15 additions and 7 deletions

View File

@@ -12,12 +12,8 @@ server {
access_log <%= node[:nginx][:log_dir] %>/<%= @domain %>.access.log json;
error_log <%= node[:nginx][:log_dir] %>/<%= @domain %>.error.log warn;
root <%= @root_dir %>;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_pass localhost:<%= @port %>;