Skip to content

Commit

Permalink
Nginx logging fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeiklimuk committed Sep 3, 2024
1 parent a75a8c7 commit 76c40f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,12 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
template {
change_mode = "noop"
data = <<EOH
log_format default '[$time_iso8601] $remote_addr - $remote_user $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
server {
root /data;
access_log /dev/stdout default;
error_log /dev/stderr warn;
autoindex on;
listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }};
Expand Down
4 changes: 3 additions & 1 deletion operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
template {
change_mode = "noop"
data = <<EOH
log_format default '[$time_iso8601] $remote_addr - $remote_user $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
server {
root /data;
access_log /dev/stdout default;
error_log /dev/stderr warn;
autoindex on;
listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }};
Expand Down
4 changes: 3 additions & 1 deletion operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,11 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
template {
change_mode = "noop"
data = <<EOH
log_format default '[$time_iso8601] $remote_addr - $remote_user $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
server {
root /data;
access_log /dev/stdout default;
error_log /dev/stderr warn;
autoindex on;
listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }};
Expand Down

0 comments on commit 76c40f0

Please sign in to comment.