NGINX Reverse Proxy issue #2167

Closed
opened 2026-02-05 03:11:22 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @killmasta93 on GitHub (Mar 23, 2021).

Hi

I was wondering if someone could shed some light currently trying to configure NGINX with bookstack as reverse proxy as its currently with Apache, I changed the apache ports to 8080 and this is my NGINX config

but im now getting distortion picture

https://imgur.com/W4GA0Pi.png

server {

# listen 80 default_server;

# listen [::]:80 default_server;

listen 443 ssl;

server_name wiki.domain.com;

ssl_certificate /etc/letsencrypt/live/wiki.domain.com/fullchain.pem;

ssl_certificate_key /etc/letsencrypt/live/wiki.domain.com/privkey.pem;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;

ssl_dhparam /etc/ssl/certs/dhparam.pem;

ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';


location ~ /.well-known {

root /var/www/letsencrypt;

allow all;

}

`# Add index.php to the list if you are using PHP`

`index index.html index.htm index.nginx-debian.html;`



location / {

proxy_pass http://192.168.3.190:8080/;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header Host $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

`}`
Originally created by @killmasta93 on GitHub (Mar 23, 2021). Hi I was wondering if someone could shed some light currently trying to configure NGINX with bookstack as reverse proxy as its currently with Apache, I changed the apache ports to 8080 and this is my NGINX config but im now getting distortion picture https://imgur.com/W4GA0Pi.png ``` server { # listen 80 default_server; # listen [::]:80 default_server; listen 443 ssl; server_name wiki.domain.com; ssl_certificate /etc/letsencrypt/live/wiki.domain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/wiki.domain.com/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_dhparam /etc/ssl/certs/dhparam.pem; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; location ~ /.well-known { root /var/www/letsencrypt; allow all; } `# Add index.php to the list if you are using PHP` `index index.html index.htm index.nginx-debian.html;` location / { proxy_pass http://192.168.3.190:8080/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; `}` ```
Author
Owner

@ssddanbrown commented on GitHub (Mar 23, 2021):

I replied on reddit: https://www.reddit.com/r/selfhosted/comments/matu7d/bookstack_reverse_proxy_nginx/grus6rm/?utm_source=reddit&utm_medium=web2x&context=3

Let me know if neither of those apply and we'll have to start digging into the browser devtools to understand where those requests are going.

@ssddanbrown commented on GitHub (Mar 23, 2021): I replied on reddit: https://www.reddit.com/r/selfhosted/comments/matu7d/bookstack_reverse_proxy_nginx/grus6rm/?utm_source=reddit&utm_medium=web2x&context=3 Let me know if neither of those apply and we'll have to start digging into the browser devtools to understand where those requests are going.
Author
Owner

@killmasta93 commented on GitHub (Mar 23, 2021):

thanks for the reply,i realized the APP_URL i forgot to add the https it was http :=0
that fixed it

@killmasta93 commented on GitHub (Mar 23, 2021): thanks for the reply,i realized the APP_URL i forgot to add the https it was http :=0 that fixed it
Author
Owner

@ssddanbrown commented on GitHub (Mar 23, 2021):

Glad to hear you found the cause!

@ssddanbrown commented on GitHub (Mar 23, 2021): Glad to hear you found the cause!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2167