philchillbill wrote: 
> If you need to access LMS remotely, use something like ngrok which will
> give you a https url for LMS with encrypted credentials.

Hey philchilllbill, as suspected I run into troubles. That's why I did
not set it up yet. 

I have a working NGINX config for my Radicale account. Radicale is an
option to have a CalDAV and CardDAV server at home. This setup is
special because I use the credentials I put in to log into NGINX also to
log into the Radicale account that gets proxied. I copied this mostly
from a German site. 

Now I want to add a plain and "simple" NGINX authentication to let me
access the LMS which is on the same server but under a different port,
of course.

I have one user in my 
Code:
--------------------
    .htpasswd
--------------------
. I just put a second user and password in with the appropriate command.


I CAN LOG INTO PORT 18889 BUT THEN I DON'T GET FORWARDED TO LMS BUT I
SEE A PAGE OF NGINX TELLING ME IT IS RUNNING BUT NEEDS MORE CONFIG. 

Can you maybe spot the issue?

This is my 
Code:
--------------------
    /usr/local/nginx/conf/nginx.conf
--------------------
:


Code:
--------------------
    #user  nobody;
  worker_processes  1;
  error_log  logs/error.log;
  error_log  logs/error.log  notice;
  error_log  logs/error.log  info;
  #pid        logs/nginx.pid;
  events {
  worker_connections  1024;
  }
  http {
  auth_basic "NGINX";
  auth_basic_user_file .htpasswd;
  #  ssl_certificate ssl/server.crt;
  ssl_certificate /etc/letsencrypt/live/bvrulez/fullchain.pem;
  #  ssl_certificate_key ssl/server.key;
  ssl_certificate_key /etc/letsencrypt/live/bvrulez/privkey.pem;
  include       mime.types;
  default_type  application/octet-stream;
  #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  #                  '$status $body_bytes_sent "$http_referer" '
  #                  '"$http_user_agent" "$http_x_forwarded_for"';
  #access_log  logs/access.log  main;
  sendfile        on; 
  #tcp_nopush     on;
  #keepalive_timeout  0;
  keepalive_timeout  65;
  #gzip  on;
  server {      
          server_name MYPERSONALSERVER.COM;
          listen 18888 ssl;
  location / {
  proxy_pass        http://localhost:5232/;
  proxy_set_header  X-Script-Name /;
  proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header  X-Remote-User $remote_user;
  proxy_set_header  Host $http_host;
  proxy_pass_header Authorization;
        auth_basic        "Nginx-Radicale - Password Required";
                #auth_basic_user_file /etc/nginx/htpasswd;
  }
  }
        server {
          server_name MYPERSONALSERVER.COM;
          listen 18889 ssl;
          location / {
                proxy_pass              http://localhost:9000/;
  }
  }
  }
--------------------


------------------------------------------------------------------------
bvrulez's Profile: http://forums.slimdevices.com/member.php?userid=67251
View this thread: http://forums.slimdevices.com/showthread.php?t=114336

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to