Jump to content

KingB

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by KingB

  1. Hello,

     

    I am using the nginx reverse Proxy for my Nextcloud + Unifi Controller and Unifi Guest Portal.

     

    It is based on the subdomain. nextcloud.* unifi.* and unifi-gastportal.*

     

    The Nextcloud works fine, secure connection etc. The Nextcloud runs in Bridge Mode with Port 444 and 81. (Unraid IP 192.168.4.18)

     

    On the other hand the unifi Controller. It runs in the br0 Mode, so that it gets an own IP Adress (192.168.4.2) (otherwise i get STUN Errors).

     

    But i cannot proxy_pass to the unifi Controller. It only works if I run the container in bridge mode with the unraid IP.

     

    I always get

    502 Bad Gateway


    nginx/1.12.2

     

     

    I use default config files except for ssl, but with the default one it does not work either.

     

    This is what i added to the default site config: (the first works, the second not. Looks like an network error?)

     


    server {
        listen 443 ssl;

        #root /config/www;
        index index.html index.htm index.php;

        server_name nextcloud.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 0;

        location / {
            include /config/nginx/proxy.conf;
            proxy_pass https://192.168.4.18:4443;    
        }
    }

    server {
        listen 443 ssl;

        #root /config/www;
        index index.html index.htm index.php;

        server_name unifi.*;

        include /config/nginx/ssl.conf;

        client_max_body_size 0;

        location / {
            include /config/nginx/proxy.conf;
            proxy_pass https://192.168.4.2:8443;    
        }
    }

     

    What am I doing wrong? Is it a bug?

     

    I can reach the controller if I use the static IP instead of the subdomain.

     

    from the error.log:

     

    2018/03/22 04:06:11 [error] 379#379: *319 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.4.1, server: unifi.*, request: "GET / HTTP/1.1", upstream: "https://192.168.4.2:8443/", host: "unifi.xxxxxx"

     

  2. Hey guys,

     

    i used the guide to update to NC 11 that was on a few pages ago.

     

    Worked perfectly.

     

    Since i use keepass and sync my Database with my Nextcloud, i want to use keeweb.

     

    But i activated the app (latest Version) and tried to use it. When i click on the app, the pages opens but stays blank. Same happens if i click on the database file.

     

    Anyone got it working?

     

    It would be a great app to log into my accounts anywhere in the world without downloading anything.

     

  3. Thank you for that answer :-)

     

    I changed it to nogroup and synced the devices with the big files. After that I restarted the container the chmod did its job.

     

    So, for now I am fine, since small files and changes in files getting synced without any problem.

     

    If the problem occours again, I know how to temporary fix it and that should be enought for now.

  4. Hello,

     

    I am using your latest docker Container and it seems to work fine at first. I was able to upload all my content from my main desktop to the Nextcloud out of my Nextcloud Folder (10GB)

     

    Sync works fine with that pc.

     

    But now I want to sync all the stuff inside my laptops nextcloud folder.

     

    I constantly get the following error in the logfile and in the client I just got the message in red, operation canceled.

     

    2016/11/12 11:00:15 [crit] 305#0: *307 open() "/var/lib/nginx/tmp/fastcgi/1/00/0000000001" failed (13: Permission denied) while reading upstream, client: xxxxx, server xxxxx request: "GET /remote.php/webdav/xxxx

     

    Now I ssh'ed  into the docker container to see if there is an permission error with the tmp folder.

     

    I changes to whole tmp directory to 777, no change.

     

    The default user and group is abc? Is that correct?

     

    Because i changed it to nobody and nogroup and then the sync works and the files download correctly.

     

    But this time the whole nginx directory insde the /var/lib folder.

     

    I think this is not correct way to fix it, because i have no big security problems i guess?

     

    Any advice?

     

     

  5. Hello,

     

    everything is working perfectly and rock stable. Thank you very much !

     

    Is it possible to use/install fail2ban within this docker? I dont want to use the nginx reverse proxy, since I still have some problems with it and it was noticeable slower. I only use it for the certificate :-D.

     

    Would it be possible to include fail2ban in this docker? Would love to see it, so I would be able to block those scanning bots and known bad bots etc.

     

    Thank you in advance!

  6. The main reason for to not use the reverse proxy was, that the android app it not detecting the installation with the dyndns adress, only with the direct non reversed proxy ip adress inside the lan. And you get that strange error when you try to log out when you are not the in the lan.

    Do you know if the android app detects the installation if you use a "normal" address, like mydomain.net instead of a dyndns address?

     

    I use my bought domain name. It like mydomain.de. When I use the the normal Nextcloud container on the 443 Port, the Adress works correctly. So it is not that fault i guess.. Or do think it is?

  7. Hello,

     

    I am using your docker container and it works perfectly!

     

    I want to use let's encrypt but since i am new to docker, I am not sure how to install it inside the docker?

     

    Is there a way that you can include it? Like in this docker? https://github.com/filcuc/nextcloud-docker

     

    Which i dont know how to install on unraid, since these are my first steps with unraid and docker.

     

    For now i use the nginx-letsencrypt docker cointainer to create and renew my certificate and then copy it over to my nextcloud docker and changed the path in the default file in site-confs. This works very good, ssllabs shows A+ and its working great.

     

    The main reason for to not use the reverse proxy was, that the android app it not detecting the installation with the dyndns adress, only with the direct non reversed proxy ip adress inside the lan. And you get that strange error when you try to log out when you are not the in the lan.

     

    Is there a more easy way right now?

     

    Thanks for your amazing work! I know it is still a Beta Container, but would still be nice to have the lets encrypt :-)

  8. Hello,

     

    I am running Unraid 6.2 RC5 and I can successfully install any Windows based VM's. (Only Remotedesktop does not work, VNC does )

     

    But when I want to setup my Debian or Ubuntu VM, I can only go through the Setup until I have to choose the Disk.

     

    When I boot the live CD, gparted shows only the 512B Partition too, and starts with errors anyway. "Invalid argument during seek for read on /dev/sda"

     

    When I try to install it on the 512 B drive, it says to small (obviously) and too small for partitioning. I changed in the advanced option from VirtIO to Sata and IDE, but still nothing. When i add a second Disk, the same happens to that one. I get two 512B Drives.

     

    I am using an Xubuntu 16.04 and a Debian 8.5.0 iso.

     

    Any ideas?

×
×
  • Create New...