mirror of
https://github.com/ergin/nginx-cloudflare-real-ip.git
synced 2026-04-25 05:15:53 +03:00
[GH-ISSUE #12] Alternative approach using sed and some for loop variables #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-cloudflare-real-ip#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jessuppi on GitHub (Aug 8, 2023).
Original GitHub issue: https://github.com/ergin/nginx-cloudflare-real-ip/issues/12
Hello @ergin and thank you very much for your work on this script, I came across it a few times and finally implemented your research into my SlickStack script after several users asked for it.
This is not so much a feature request, but in case you wanted to share an alternative way to build
cloudflare.confusingsedand an existing boilerplate, it seems to work okay...Ref: https://github.com/littlebizzy/slickstack/blob/master/bash/ss-install-nginx-cloudflare-ips.txt
This is an example boilerplate:
https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/includes/cloudflare-conf.txt
And the placeholders in the boilerplate
@CLOUDFLARE_IPV4_LISTand@CLOUDFLARE_IPV6_LISTget replaced viasedusing your nifty bash for loop and a few tmp files.Anyway I had never used
sedthis way before so just wanted to share. Thanks!P.S. we credited you in the script comments at the bottom