saving uncommitted changes in /etc prior to dnf run
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
geo $allowed_clients {
|
||||
#geo $allowed_clients {
|
||||
# default 0;
|
||||
# 192.168.1.0/24 1;
|
||||
# 188.26.227.57/32 1;
|
||||
#}
|
||||
|
||||
map $remote_addr $allowed_clients {
|
||||
default 0;
|
||||
127.0.0.1 1;
|
||||
192.168.1.0/24 1;
|
||||
188.26.227.57/32 1;
|
||||
188.26.227.57 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ server {
|
||||
root /var/www/html/vhosts/club3d.ro/;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
access_log /var/log/nginx/club3d.ro.access.log;
|
||||
access_log /var/log/nginx/club3d.ro.access.log main;
|
||||
error_log /var/log/nginx/club3d.ro.error.log;
|
||||
|
||||
location ~* \.php$ {
|
||||
|
||||
@@ -6,7 +6,7 @@ server {
|
||||
server_name maintenance.898.ro;
|
||||
root /var/www/html/maintenance;
|
||||
|
||||
access_log /var/log/nginx/maintenance.access.log;
|
||||
access_log /var/log/nginx/maintenance.access.log main;
|
||||
error_log /var/log/nginx/maintenance.error.log notice;
|
||||
|
||||
# maintenance error page
|
||||
|
||||
@@ -22,6 +22,25 @@ http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
#log_format json escape=json '{"source": "nginx", "time": $msec, "resp_body_size": $body_bytes_sent, "host": "$http_host", "address": "$remote_addr", "request_length": $request_length, "method": "$request_method", "uri": "$request_uri", "status": $status, "user_agent": "$http_user_agent", "resp_time": $request_time, "upstream_addr": "$upstream_addr"}';
|
||||
|
||||
# log_format json escape=json '{"remote_addr": "$http_x_forwarded_for", '
|
||||
# '"host": "$host", '
|
||||
# '"remote_user": "$remote_user", '
|
||||
# '"time": "$time_local", '
|
||||
# '"request": "$request", '
|
||||
# '"status": "$status", '
|
||||
# '"body_bytes_sent": "$body_bytes_sent",'
|
||||
# '"http_referer": "$http_referer",'
|
||||
# '"http_user_agent": "$http_user_agent",'
|
||||
# '"upstrm": "$upstream_response_time",'
|
||||
# '"took": "$request_time",'
|
||||
# '"upstream_addr": "$upstream_addr"}';
|
||||
#
|
||||
#log_format json escape=json '{ "timestamp": "$time_iso8601", '
|
||||
#'"remote_addr": "$remote_addr", '
|
||||
#'"remote_user": "$remote_user", '
|
||||
|
||||
Reference in New Issue
Block a user