en:tecdoc:abusenotif

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tecdoc:abusenotif [2021/08/22 10:01]
jomat
en:tecdoc:abusenotif [2021/08/22 10:04] (current)
jomat [Content Reports]
Line 3: Line 3:
 <code - nginx.conf> <code - nginx.conf>
         location ~ ^/_matrix/client/(r0|unstable)/register$ {         location ~ ^/_matrix/client/(r0|unstable)/register$ {
- proxy_pass  http://127.0.0.1:8008;+ proxy_pass http://127.0.0.1:8008;
                 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     $host;+ proxy_set_header Host $host;
                 body_filter_by_lua_block {                 body_filter_by_lua_block {
                   local proc = io.popen('/usr/local/bin/matrix_user_registered ' .. ngx.var.remote_addr,'w')                   local proc = io.popen('/usr/local/bin/matrix_user_registered ' .. ngx.var.remote_addr,'w')
Line 39: Line 39:
 <code - nginx.conf> <code - nginx.conf>
  location ~ ^/_matrix/client/(r0|unstable)/rooms/.*/report/ {  location ~ ^/_matrix/client/(r0|unstable)/rooms/.*/report/ {
- proxy_pass  http://127.0.0.1:8008;+ proxy_pass http://127.0.0.1:8008;
                 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     $host;             + proxy_set_header Host $host;             
  rewrite_by_lua '  rewrite_by_lua '
                   if ngx.var.request_method == "POST" then                   if ngx.var.request_method == "POST" then
  • en/tecdoc/abusenotif.1629626489.txt.gz
  • Last modified: 2021/08/22 10:01
  • by jomat