| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 
                    en:tecdoc:abusenotif [2021/07/01 19:20] jomat [Content Reports]  | 
                
                    en:tecdoc:abusenotif [2021/08/22 10:04] (current) jomat [Content Reports]  | 
            ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code - nginx.conf> | <code - nginx.conf> | ||
| - | 	location  | + |          | 
| - | #limit_req zone=limitregister burst=5; | + | 		proxy_pass http:// | 
| - | client_max_body_size 100M; | + | |
| - | client_body_buffer_size 100M; | + | |
| - | + | ||
| - | 		proxy_pass	 http:// | + | |
|                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| - | 		proxy_set_header Host	     | + | proxy_set_header Host $host; | 
| - | 		proxy_set_header X-Real-IP $remote_addr; | + | |
| - | proxy_set_header X-Forwarded-Proto $scheme; | + | |
| - | proxy_set_header X-Forwarded-Ssl on; | + | |
| - |                 proxy_set_header X-SSL 1;                 | + | |
| body_filter_by_lua_block { | body_filter_by_lua_block { | ||
|                   local proc = io.popen('/ |                   local proc = io.popen('/ | ||
| Line 46: | Line 38: | ||
| ====== Content Reports ====== | ====== Content Reports ====== | ||
| <code - nginx.conf> | <code - nginx.conf> | ||
| - | 	location ~ / | + | 	location ~ ^/ | 
| - | client_max_body_size 100M; | + | 		proxy_pass http:// | 
| - | client_body_buffer_size 100M; | + | |
| - | + | ||
| - | 		proxy_pass	 http:// | + | |
|                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| - | 		proxy_set_header Host	     | + | 		proxy_set_header Host $host;  | 
| - | 		proxy_set_header X-Real-IP $remote_addr; | + | |
| - | proxy_set_header X-Forwarded-Proto $scheme; | + | |
| - | proxy_set_header X-Forwarded-Ssl on; | + | |
| - |                 proxy_set_header X-SSL 1;                 | + | |
| rewrite_by_lua ' | rewrite_by_lua ' | ||
|                   if ngx.var.request_method == " |                   if ngx.var.request_method == " | ||
- en/tecdoc/abusenotif.1625167204.txt.gz
 - Last modified: 2021/07/01 19:20
 - by jomat