mirror of
https://github.com/ergin/nginx-cloudflare-real-ip.git
synced 2026-04-25 05:15:53 +03:00
[GH-ISSUE #9] Run with NPM in docker container #4
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#4
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 @FlyingPersian on GitHub (Mar 25, 2022).
Original GitHub issue: https://github.com/ergin/nginx-cloudflare-real-ip/issues/9
Hello,
How do I run this when nginx proxy manager is running in a docker container?
I'm binding a folder into /etc/nginx/ and a data folder into /data. Within data, I created a file called http.conf in /data/nginx/custom added the following line to it (see here:
include /etc/nginx/cloudflare;I added the file "cloudflare" to the folder I'm mounting to /etc/nginx/ like described in the instructions. I'm now struggling to create the cron tab to run the script. I found this, to setup a crontab, but it seems fairly complicated and I'm unsure whether it works or not.
After I setup everything, I connected to the sh shell of my container using portainer and ran the script, but I got this error:
nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directoryAlso, I'd prefer to have this happen in real time so that my NPM logs reflect the real IPs right away.