1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2025-09-25 06:17:34 +00:00

Remove ldap auth

syncthing is fundamentally a single user app and it's confusing that
one can LDAP login giving the impression it is somehow multi-user.
This commit is contained in:
Girish Ramakrishnan
2018-02-26 10:30:48 -08:00
parent cdca87ef50
commit 94520d61bf
5 changed files with 4 additions and 95 deletions

View File

@@ -1,49 +0,0 @@
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;
}
}
}