user cloudron; load_module "/usr/local/nginx/modules/ngx_http_auth_ldap_module.so"; worker_processes 1; pid /run/nginx.pid; daemon off; # Send logs to stderr error_log /dev/stderr warn; events { worker_connections 768; } http { include /run/ldap.conf; error_log /dev/stderr warn; log_format simple '$remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer"'; access_log /dev/stdout simple; include /etc/nginx/mime.types; client_body_temp_path /tmp/client_body 1 2; proxy_temp_path /tmp/proxy_temp 1 2; fastcgi_temp_path /tmp/fastcgi_temp 1 2; uwsgi_temp_path /tmp/uwsgi_temp 1 2; scgi_temp_path /tmp/scgi_temp 1 2; proxy_buffering off; proxy_cache_path /tmp/proxy_cache levels=1:2 keys_zone=my_cache:10m max_size=100m inactive=60m use_temp_path=off; proxy_cache my_cache; auth_ldap_cache_enabled on; auth_ldap_cache_expiration_time 300000; auth_ldap_cache_size 100; server { error_log /dev/stderr warn; listen 8000 default_server; server_name _; proxy_read_timeout 120s; location /check { proxy_pass http://localhost:3000/syncthing/app.js; } location / { auth_ldap "Forbidden"; auth_ldap_servers cloudron; proxy_pass http://localhost:3000; } } }