Skip to content

Commit d54dd0a

Browse files
authored
proxy-production.default: align config to intranet (#306)
1 parent 7084d6d commit d54dd0a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

proxy/proxy-production.default.conf

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pid /tmp/nginx/pid;
22

3-
error_log /dev/stdout warn;
3+
error_log /dev/stderr warn;
44

55
worker_processes 1;
66

@@ -16,11 +16,9 @@ http {
1616
open_file_cache_min_uses 2;
1717
open_file_cache_errors on;
1818
sendfile on;
19+
tcp_nopush on;
1920
server_tokens off;
20-
log_format custom '"$request" '
21-
's=$status b=$body_bytes_sent t=$request_time '
22-
'"$http_x_forwarded_for" '
23-
'"$http_user_agent" "$http_referer"';
21+
charset utf-8;
2422

2523
# running as non-root requires a writeable path
2624
client_body_temp_path /tmp/nginx/client_temp;
@@ -29,12 +27,15 @@ http {
2927
uwsgi_temp_path /tmp/nginx/uwsgi_temp;
3028
scgi_temp_path /tmp/nginx/scgi_temp;
3129

30+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
31+
'$status $body_bytes_sent "$http_referer" '
32+
'"$http_user_agent" "$http_x_forwarded_for"';
33+
access_log /dev/stdout main;
34+
3235
server {
3336
listen 8080;
3437
server_name localhost;
3538

36-
#access_log /var/log/nginx/host.access.log main;
37-
3839
location / {
3940
absolute_redirect off;
4041
root /usr/share/nginx/html;

0 commit comments

Comments
 (0)