Skip to content

Instantly share code, notes, and snippets.

@foreseaz
Created April 24, 2019 08:00
Show Gist options
  • Save foreseaz/964ec1b1b9614fed00c1861305fc2823 to your computer and use it in GitHub Desktop.
Save foreseaz/964ec1b1b9614fed00c1861305fc2823 to your computer and use it in GitHub Desktop.
sub_filter ngixn
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://forum_backend/;
proxy_set_header Accept-Encoding "";
sub_filter '</html>' '<script async defer src="/hack.js"></script></html>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment