[GH-ISSUE #249] Configuration for Shaarli #217

Closed
opened 2026-02-26 06:31:34 +03:00 by kerem · 1 comment
Owner

Originally created by @murmelbahn on GitHub (Dec 2, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/249

Hi all,

I'm using Shaarli ( https://github.com/shaarli/Shaarli )behind the proxy manager. Everythings works well, except for the api. The documentation of Shaarli suggest the following settings for a nginx reverse proxy:

https://github.com/shaarli/Shaarli/blob/master/doc/md/docker/reverse-proxy-configuration.md

`http {
[...]

index index.html index.php;

root        /home/john/web;
access_log  /var/log/nginx/access.log;
error_log   /var/log/nginx/error.log;

server {
	listen       80;
	server_name  shaarli.domain.tld;
	return       301 https://shaarli.domain.tld$request_uri;
}

server {
	listen       443 ssl http2;
	server_name  shaarli.domain.tld;

    ssl_certificate       /path/to/cert
    ssl_certificate_key   /path/to/certkey

	location / {
		proxy_set_header  X-Real-IP         $remote_addr;
		proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
		proxy_set_header  X-Forwarded-Proto $scheme;
		proxy_set_header  X-Forwarded-Host  $host;

		proxy_pass             http://localhost:10080/;
		proxy_set_header Host  $host;
		proxy_connect_timeout  30s;
		proxy_read_timeout     120s;

		access_log      /var/log/nginx/shaarli.access.log;
		error_log       /var/log/nginx/shaarli.error.log;
	}
}

}`

Sadly I don't know how to change this settings. I'm using Nginx Proxy Manager with a docker-compose file. Maybe someon can give me a hint to solve this problem?

Many thanks in advance.

Originally created by @murmelbahn on GitHub (Dec 2, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/249 Hi all, I'm using Shaarli ( https://github.com/shaarli/Shaarli )behind the proxy manager. Everythings works well, except for the api. The documentation of Shaarli suggest the following settings for a nginx reverse proxy: https://github.com/shaarli/Shaarli/blob/master/doc/md/docker/reverse-proxy-configuration.md `http { [...] index index.html index.php; root /home/john/web; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; server { listen 80; server_name shaarli.domain.tld; return 301 https://shaarli.domain.tld$request_uri; } server { listen 443 ssl http2; server_name shaarli.domain.tld; ssl_certificate /path/to/cert ssl_certificate_key /path/to/certkey location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_pass http://localhost:10080/; proxy_set_header Host $host; proxy_connect_timeout 30s; proxy_read_timeout 120s; access_log /var/log/nginx/shaarli.access.log; error_log /var/log/nginx/shaarli.error.log; } } }` Sadly I don't know how to change this settings. I'm using Nginx Proxy Manager with a docker-compose file. Maybe someon can give me a hint to solve this problem? Many thanks in advance.
kerem closed this issue 2026-02-26 06:31:35 +03:00
Author
Owner

@chaptergy commented on GitHub (Oct 25, 2021):

Closing as stale, as it's a very old issue and no information about any errors or current configuration was provided.

<!-- gh-comment-id:950954906 --> @chaptergy commented on GitHub (Oct 25, 2021): Closing as stale, as it's a very old issue and no information about any errors or current configuration was provided.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#217
No description provided.