Skip to content

Update default.conf.sample for reverse proxy & cloudflare purpose #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ app_setup_block: |

# changelog
changelogs:
- { date: "29.12.23:", desc: "Update default.conf.sample for reverse proxy & cloudflare purpose."}
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."}
- { date: "31.10.23:", desc: "Further sanitize sed replace." }
- { date: "07.06.23:", desc: "Add mariadb-client for bookstack-system-cli support." }
Expand Down
5 changes: 5 additions & 0 deletions root/defaults/nginx/site-confs/default.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ server {
root /app/www/public;
index index.html index.htm index.php;

# display real ip in nginx logs when connected through reverse proxy via docker network or via docker_mods=cloudflared
set_real_ip_from 127.0.0.1;
set_real_ip_from 172.16.0.0/12;
real_ip_header X-Forwarded-For;

location / {
# enable for basic auth
#auth_basic "Restricted";
Expand Down