Skip to content

Instantly share code, notes, and snippets.

@pstoute
Created March 21, 2022 23:33
Show Gist options
  • Save pstoute/409bd04c7171c039ab1516d024122f16 to your computer and use it in GitHub Desktop.
Save pstoute/409bd04c7171c039ab1516d024122f16 to your computer and use it in GitHub Desktop.
Add the webgility IP address to your 7G whitelist.
if ($remote_addr ~* "54.69.99.71") {
set $7g_drop_bad_request 0;
set $7g_drop_bad_referer 0;
set $7g_drop_bad_query_string 0;
set $7g_drop_not_allowed_method 0;
set $7g_drop_bad_bot 0;
}
@pstoute
Copy link
Author

pstoute commented Mar 21, 2022

This is a quick gist for folks who use the 7G firewall and Webgility to manage your WooCommerce store. Add this file via root access to your nginx extras location and make sure that your server configuration will add the added context file.

The location for GridPane powered servers:
nano /etc/nginx/extra.d/webgility-7g-context.conf

After you've added the context file, you'll need to restart Nginx
nginx -t
gp ngx reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment