Danietech

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Danietech

  1. Hi Long time listener of this issue early 2020,  I was hoping this would of been resolved by now, it would seem after my update to 6.9 I have been working well with all the apps I need and the NAS.

     

    One of the main resaons for my purchase was having the best of both worlds regarding storage and the ability to game the docker apps have been a nice to have, there the cats out the bag but to the point.

     

    I am using what I estimated to be a tidy setup or at very least capable for my minor usage

     

    Gigabybte x570

    3950 AMD

    1080Ti

    64 ram 2600mhz

     

    Giving acknowlegdement to other users with the same set of events and efforts made to not loose hope with this first world suffering here, I think this is now well documentated to at least get a small ear to the main dudes.

     

    For my issue I have managed to get it down to a managble issue where if I have to restart I have to redump my GPU bios to get the benefits of my GPU via my Win10 KVM

     

    However this does not happen when my drives spin down for sleep mode and I re-intialise my system so this is isolated to the reboots only

     

    My ask at this point is shouldn't the Unraid system be allowed to reboot intact from the usb drive using its last state, why is it changing on a clean reboot, there is certainly something strange going on, maybe its a piority may be its not, I sure would love to know though it bugging the hell out of me, considering my options moving forward, I certianly have had some fun using this co op of application, shame that changes from one version to next can't be caputred to isolate this issue.

     

     

     

     

     

     

  2. 10 hours ago, bigmak said:

    To add this variable to a docker container, do the following.

     

    • Edit the container
    • Switch view to advanced at top right
    • In "extra parameters", add the following text: 
    
    -e MAXMINDDB_LICENSE_KEY=[type key here, no brackets]
    • The "-e" means it's an environment variable
    • The next thing after that is the name of the variable
    • Value of variable is then set to the right.

    I'm also really new to Docker containers and have been figuring this out on the fly.

     

    9 hours ago, saarg said:

    Or you can just click the Add another Path, Port, Variable, Label or Device at the bottom of the template and choose variable and fill out the fields.

    This looks good to me, I'll give it a go, cheers

  3. 7 hours ago, WoooW said:

    Hi all

     

    I was trying to setting up nextcloud / letsencrypt via spaceinvadars videos.

     

    I ran into som problems, when I add the line 'overwritehost' => 'MYSUBDOMAIN.*DNS*.org'

    the nextcloud webui (local on unraid server) stops working,

     

    I cant either get to it from the website "https://MYSUBDOMAIN.*DNS*.org"

    Letsencrypt generate an certificate

     

    dns update docker, seems too work fine, it said its update the ip.

     

    I can't get to the nextcloud setup (webui) from internally network, via smartphone there is No problems (internally).

     

    can you please help me? i have reinstalled it 3-5 times, i cant see why it isnt working

    To do list:

     

    Method of attack 1 : copy your program you are about to edit so you can revert if it goes wrong

     

    Method of attack 2: use a good text editor when editing and saving your program files.

     

    if you notice that in the program that you are editoring it differs i.e the colour differences in the text from the tutorail examples you have already watched, it can give some indicators where you have entered the incorrect syntax command information.

     

    Text editors if you have not already source them are; textmate(Mac) and notepad++(Windows)

     

    Basic checks, are the correct spaces and characters used in your commands making your syntax 100% - rule of thumb check check check again

     

    Note: if your subdomain is your own have you given enough time for your domain provider to setup your CNAME ( without this knowlegde you can send yourself mad wondering why its not working when a little coffee time is needed, upto 24-hours sometimes) " even if the DNS pings back to your IP 🙂 "

     

    if you are not able to open the docker locally its time to check through your IP and ports, are all your IPs aligned with the custom proxy for example;

     

    custom proxynet ip range 192.168.1.100 - 200;

     

    The dockers will have to be on the custom docker so they can be seen by each other

     

    Nextcloud should be on 192.168.1.101

    Letsencrypt should on 192.168.1.102

     

    For the must part I am guessing at your issues but these are some of the things that catch me out, saying that its nice to get a fresh pair of eyes from one noob to another, it would be more helpful if you put your program example on line and it could be spotted by others, its the stuff between the lines that catches out the up and coming and even the efficenardos. 

     

     

     

     

     

     

                       

     

     

  4. On 11/7/2016 at 9:56 PM, linuxserver.io said:

    linuxserver_medium.png

     

    Application Name: Letsencrypt (Nginx)

    Application Site: https://letsencrypt.org/ https://www.nginx.com/

    Docker Hub: https://hub.docker.com/r/linuxserver/letsencrypt/

    Github: https://github.com/linuxserver/docker-letsencrypt

     

    Please post any questions/issues relating to this docker you have in this thread.

     

    If you are not using Unraid (and you should be!) then please do not post here, instead head to linuxserver.io to see how to get support.

    Hi Noob User here,

    I am currently using lets encrypt as a docker within my unraid server, for the most part it is working fine.

    The current issue is read from my logs, I believe it is a note letting me know that I can add a GeoIP2 license if I add an environment variable.

     

     

    “Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please retrieve a free license key from MaxMind,
    and add a new env variable “MAXMINDDB_LICENSE_KEY”, set to your license key.”

     

     

    I would like to utilize the feature, so I have signed up to Maxmind and managed to, by filtering through with my limited knowleged to generated a license.

     

    At this stage this is where I have got stuck, only for the firm reason I don’t want to break what is seemly working for the most part.

    I want to add the env variable, So I opened a console to the lets encrypt docker and opened the enviornment text file in nano, but after searching the internet to learn how to add the command to call for the database, I have found serval ways to do this causing me some confusion, I am hoping I could get a little help to correctly add the right syntax command to enable the feature as I don’t want to break it.

     

     

    I always say any help would be greatly appreciated, so any help would be greatly apreciated.

  5. On 3/11/2020 at 4:08 PM, DasNekuum said:

    ****Guide******How to make your own Streamingplattform like Twitch and Co.

     

    Project-Prolog:

     

    My Goal in this Project was to make a solid Streaming Server with a Website (in some kind of Twitch and Co.) that can only be accessed by my Friends and me and can handle up to 4 or more streams at once. So you may think thats absolut unnecessary and you are right but let‘s getting started anyway 🙂🤪

     

    What the Heck do i need for this?

     

    1.        A good Server/Pc (in may case a Dell Poweredge R610 with Dual Xeon X5675@3GHZ and 40GB of RAM)

    2.       A solid Internetconnection

    3.       Of Course a Running Unraid OS

    4.       Two subdomains of your choice one for your website and the other for your streaming server (i used no-ip.com)

    5.       A Reverse Proxy with Let’s Encrypt ; SpaceinvaderOne has a Great Video Guide

    6.       Some Dockercontainers: MariaDB, Wordpress, nginx-rtmp by alfg (https://hub.docker.com/r/alfg/nginx-rtmp/)

    7.        Some Friends to Test

    8.       A lots of nerves and Time

    9.       Friends or yourself for some Desgin stuff for your cool website logo and images

    10.     Your choice of Drug to keep you calm like Coffee, Beer, Pizza etc.

     

     

     

    The First steps on Wordpress:

     

    First of all install MariaDB and make a Database for Wordpress ( i recommend to watch the Video Guide from SpaceInvaderOne How Setup up Nextcloud

     

    After you setup MariaDB proberly install Wordpress and Setup your admin account etc..

     

    [I First started to build the website with serveral Wordpress-Plugins on my local network. But i recommend to go first with the setup of your Domain for your website via Letsencrypt]

     

    Then make your „Resverse Proxy Dockernet“ in Unraid and install Letsencrypt like seen in the Video Guide from SpaceinvaderOne. Enter your Domains in Letsencrypt

     

    Move to Wordpress --> Settings--> Generally and change the Wordpress-Adress and the Website-Adress to your domains name like:  https://example.yourdomain.com

    grafik.png.abba207d1d50c7ff657e2f10c4f59fa7.png

     

     

     

    (Dont worry if you cant access your Website after Save the changes and refresh; you can change this in the WP Config to your localhost/network back if something goes wrong)

     

    Move to the Letsencrypt Appdata Folder -->nginx-->proxy-confs

    (Here we have to setup a new config because at the time of writting this guide there was no Wordpress proxy-confs)

     

    Make a new text file and enter following:

     

    
    server {
        listen 443 ssl;
        listen [::]:443 ssl;
    
        server_name yoursubdomain.*; #change this to your subdomain
    
        include /config/nginx/ssl.conf;
    
        client_max_body_size 0;
    
        location / {
            include /config/nginx/proxy.conf;
            resolver 127.0.0.11 valid=30s;
            set $upstream_app Wordpress;
            set $upstream_port 80;
            set $upstream_proto http;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    
            proxy_max_temp_file_size 2048m;
        }
    }
    

    Save the file and rename it to wordpress.subdomain.conf

     

    Put Wordpress and Letsencrypt in the same „reverse Proxy Dockernet“ and restart the docker containers. Now u should be able to access your webiste via your Subdomain with SSL Encryption.

     

    If you can acces your website the address bar in Firefox should be like this:

    grafik.png.f95a9c0ccb6a668c4498f2408c78f30c.png

     

    [For sure you can make this all working without SSL but i strongly recommend to go with SSL for Security Reason and for accessability. Because some Browser will otherwise block the content of your website]

     

    The Second Steps or the „StreamingServer“ itself:

     

    Install the nginx-rtmp Docker Container by alfg via Community Apps. And Set it up like this:

    grafik.png.1118b3e6f65476dcc1783b704592654b.png

     

    (Keep in Mind your Docker allocations to setup the ports correct to avoid conflicts)

     

    I think you don't need the Container Path „Certs“ since we are using Letsencrypt but i needed it for some testing.

     

    Then pull and install the container. It is possibly that after your installtion the docker container wont run and you get some Errors. (mostly because a config is missing)

    To solve this Problem ove to your Appdata -->nginx-rtmp-->conf and create a new text file and paste the following:

    
    daemon off;
    worker_processes  auto;
    error_log /dev/stdout info;
    
    events {
        worker_connections 1024;
    }
    
    rtmp {
        server {
            listen 1935;
            chunk_size 4000;
    
            application stream {
                live on;
    
                exec ffmpeg -i rtmp://localhost:1935/stream/$name
                  -c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 2500k -f flv -g 30 -r 30 -s 1280x720 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_720p2628kbs
                  -c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 1000k -f flv -g 30 -r 30 -s 854x480 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_480p1128kbs
                  -c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 750k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_360p878kbs
                  -c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 400k -f flv -g 30 -r 30 -s 426x240 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_240p528kbs
                  -c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 200k -f flv -g 15 -r 15 -s 426x240 -preset superfast -profile:v baseline rtmp://localhost:1935/hls/$name_240p264kbs;
            }
    
            application hls {
                live on;
                hls on;
                hls_fragment_naming system;
                hls_fragment 3;
                hls_playlist_length 20;
                hls_path /opt/data/hls;
                hls_nested on;
    
                hls_variant _720p2628kbs BANDWIDTH=2628000,RESOLUTION=1280x720;
                hls_variant _480p1128kbs BANDWIDTH=1128000,RESOLUTION=854x480;
                hls_variant _360p878kbs BANDWIDTH=878000,RESOLUTION=640x360;
                hls_variant _240p528kbs BANDWIDTH=528000,RESOLUTION=426x240;
                hls_variant _240p264kbs BANDWIDTH=264000,RESOLUTION=426x240;
            }
        }
    }
    
    http {
        access_log /dev/stdout combined;
    
        ssl_ciphers         HIGH:!aNULL:!MD5;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_session_cache   shared:SSL:10m;
        ssl_session_timeout 10m;
    
        server {
            listen 80;
    
            # Uncomment these lines to enable SSL.
            # Update the ssl paths with your own certificate and private key.
             listen 443 ssl;
             ssl_certificate     /opt/certs/example.crt;
             ssl_certificate_key /opt/certs/example.key;
    
            location /hls {
                types {
                    application/vnd.apple.mpegurl m3u8;
                    video/mp2t ts;
                }
                root /opt/data;
                add_header Cache-Control no-cache;
                add_header Access-Control-Allow-Origin *;
            }
    
            location /live {
              alias /opt/data/hls;
              types {
                  application/vnd.apple.mpegurl m3u8;
                  video/mp2t ts;
              }
              add_header Cache-Control no-cache;
              add_header Access-Control-Allow-Origin *;
            }
    
            location /stat {
                rtmp_stat all;
                rtmp_stat_stylesheet static/stat.xsl;
            }
    
            location /static {
                alias /www/static;
            }
    
            location = /crossdomain.xml {
                root /www/static;
                default_type text/xml;
                expires 24h;
            }
        }
    }
    

    Save it and rename it to „nginx.conf“. Then restart your „StreamingServer“. I if it starts you a ready to test the „Streaming Server“ itself.

     

    I recommend for Testing purpose to use OBS and VLC-Player.

     

    Go in OBS-->Settings-->Stream change Platform to Custom and enter:

    
    rtmp://yourlocalhostip:1935/stream

    As Streamkey you can go with anything you wish but you will need it to watch the stream later. So i will go for testing with 1234.

     

    Start streaming your Desktop. If you get no Errors from OBS and it looks like this:

    grafik.png.0deeea74c72477760ce7882e19baf43c.png

     

    You are good to go.

     

    While you are streaming open VLC go to Media--> Open Networkstream and add the following:

     

    
    http://<server ip>:8083/live/yourstreamkey.m3u8 #change the port to your added Viewing Port

    If you see your stream we are ready for the Final steps.

     

    Make your Streamingserver reachable over WWW and SSL Encrypted

     

    So now if everything is working we need to make the Streamingserver reachable over the Internet so that your friends can push their streams all over the world to your server. Then we have to make the Streamingserver SSL Encrypted. Why u may ask? Because the most Browser will block your video streams over http in wordpress. So it happend to me and to find this out was a pain in the ***.

     

    Trust me …😉

     

    First you have to forward the port 1935 on your Router.

     

    Then check, if you push your stream over your „Streamingserversubdomain“ comes through to your Streamingserver.

     

    In favor to do that change in OBS your „Server“ to:

     

    
    rtmp://subdomainforyourstreamingserver:1935/stream 

    Stream and check via VLC like above if you see something.

     

    As next step we need to make the SSL encryption working:

     

    Go to the Letsencrypt Appdata Folder--> nginx-->proxy-conf and make a new text file and paste the following (since there is no subdomain.conf for the streaming dockercontainer i had to make my own):

     

    
    server {
        listen 443 ssl;
        listen [::]:443 ssl;
    
        server_name yourdomain.*;  #change this to your subdomain for your streaming server
        
    
        include /config/nginx/ssl.conf;
    
        client_max_body_size 0;
    
        location / {
            include /config/nginx/proxy.conf;
            resolver 127.0.0.11 valid=30s;
            set $upstream_app nginx-rtmp;
            set $upstream_port 443;
            set $upstream_proto https;
            proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    
            proxy_max_temp_file_size 2048m;
        }
    }
    

    Save it and rename it to: nginx-rtmp.subdomain.conf.

     

    Set your nginx-rtmp alias your streaming server into the "Reverse Proxy Dockernet".

    Restart the Streamingserver and Letsencrypt.

     

    Now your video stream should be SSL encrypted.

     

    Start a Stream with OBS.

     

    To test, take your handy test tool VLC Player and open the following networkstream:

    
    https://yourstreamserversubdomain/live/yourstreamkey.m3u8

    Congratulations ! If you see your stream everything is set up and ready to go.

     

    Now you can Design your Wordpress page.

     

    To Show the Streams on your webpage i recommend Playerjs (Wordpress-plugin). You only need your „watching“ link with the streamkey.

     

    Playerjs uses shortcodes. Here an example how the shortcode + your "watching" link should look like:

    grafik.png.a96c0b7fd3ea290247bc1f349b836dae.png

     

    Multiple Streams

     

    If you want that multiple streams can run and be watched you have to setup an individual streamkey for each stream.

     

     

    Some Infos:

     

    I tested this setup for hours with 4 People pushing theirs Streams at the same time while watching the streams and it worked great.

     

    My CPU Usage was at max. 35% -mostly lower-.

    All other Containers e.g. Nextcloud, Shinobi etc. worked perfect while streaming and watching.

    The Total RAM usage was by 40% ( with all Conatiners and two VMs -Ubuntu and WIN Server2019 – running).

     

    For some sort of security and restriction i used a Wordpress Plugin to give the website a Basic http Authentication before you can access the website. For that i used the WP-Plugin „ Frontend HTTP Authentication Protection“.

     

    On the Server-Side i recommend a 100Mbits Internetconnection with 40Mbit upload.

    On the Client-Side i recommend a 50Mbits Internetconnecntion with min 30 Mbit upload.

     

     

    THANKS FOR READING AND HAPPY STREAMING!

    PS.: If you have any further questions or need help feel free to contact me i will try my best to help you out.

     

     

    PS.: If you have any further questions or need help feel free to contact me i will try my best to help you out.

     

     

    Hi for the purpose of understanding, I have been trying to get just the streaming server working, I am not using MariaDB, WordPress, nor nextcloud, I just need to run the Rmtp to stream from OBS. I have followed your tutorial, not bad by the way, however I keep getting errors in the docker log show below, also my settings.

     

    I can only assume it is the nginx.conf, plus the docker does not start

    any hints on what i may be doing wrong

     

    any help is very welcome I am losing the will to live

     

     image.thumb.png.11cec876c9482635d82cc1fbf88d87c3.png

     

    image.png.a9a7c6a4fbbd18760e5b4a0f4f3986a4.png

  6. Hi,

    I see your requesting to stream using OBS, the reason I am jumping on this thread, I am also trying the same project, so far I have found a docker called nginx rtmp docker by dvdgiessen, unfortunately I have not been able to get it working after multiple tries, as it needs the skills of setting up in the docker manually, by mapping volumes and containers, I am new to Unraid and I am trying to get out of my comfort zone by having a go, not very successfully.

     

    The relevance of the RTMP is it allows the transfer of data by encoding from and to OBS, with the bandwidth permitting, multiple live streams can be sent from your own server, bypassing the big brands or not, if your trying to stream to multiple platforms this is catered for to.

     

    I wish to highlight this has been done on a raspberry pie according to other users so your spec is ample, but they were doing it via VM using an Ubuntu Distro or directly loaded,  with many hours of reading I can not find a descent walk through to get this running on Unraid,  I can run up a VM, but I would much prefer to get this done on Unraid reducing further setting up.

     

    Below is my setup,  if you can help I would very much appreciated it

     

    image.thumb.png.4c2eefd810e9e14508ff5cc17400284c.png

  7. On 2/8/2020 at 3:00 PM, DasNekuum said:

    So i got the Docker Container running. Just map the folder like above (without the files) and map the Port 1935.

    Than start the docker container, you may got an Error in Logs.

    Then move to your appdata folder e.g. /mnt/appdata/rtmpserver/nginx and make a text file.  Rename it to nginx.conf . Open the "new" file with notepad and paste the following:

     

    user nginx;

    worker_processes auto;

    rtmp_auto_push on;

    events {}

    rtmp {

    server {

    listen [::]:1935 ipv6only=off;

    application live {

    live on;

    }

    }

    }

     

    Save and start the Container. Now it should run.

     

    You can test this with VLC Player just use rtmp://urserverip:1935/live/test

     

    For your Streaming Project:

     

    1.Use OBS and the Plugin NDI for OBS.

     

    2.Install OBS + NDI on each gaming machine.

     

    3.Set up  OBS on each Gaming Machine

    --> Tools --> NDI Output settings (give every Gaming VM a different NDI name)

     

    4.Setup a new VM or use another PC an install OBS + NDI.

    --> Move to OBS and add an NDI Source (for every Gaming VM)

    --> Setup Streaming Settings pointing to your created RMTP Server

    (eg rmtp://192.168.178.100:1935/live/test)

     

    5. now you can arrange your Gaming VM in some Sort of Split Screen

    6. Hit Start Streaming and Have Fun

     

    If you want to push your RMTP stream to twitch or something like that you have to change your nginx.conf ( push rtmp://<other streaming service rtmp url>/<stream key>)

     

    Sources: https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

    https://github.com/DvdGiessen/nginx-rtmp-docker

     

    Sorry for the long Post. I'm new in this Forum Stuff. Hoped i could helped.

     

     

     

     

    it would seem this is not as easy as one would think - Just to introduce myself, I am currently trying the same task above, I am by no means a Linux guru nor amazingly tech savvy, however I can follow good instructions haven built my own server and compiled the Unraid server, mounting and running various dockers just following YouTube Vids and forums a like.

     

    I would really like more clarity on this, from my limited understanding, I managed to configure the folders in the editable setup of the rtmp-nginx docker with the assigned port 1935, also creating the nginx.conf file with the above lines of code. docker setup below

     

    image.thumb.png.3bde7afdf772664b3c930256a020a937.png

     

    the setting I have above is an attempt not really knowing if this correct.  after applying the settings the docker compiled successfully,  however when I checked the log output its was blank?

     

    tempsnip.png.41490e4d77d947023d2d997de8ce969c.png

     

    needless to say, I tried to gain further conformation via the VLC program using my localhost IP and port prefix 1935 with no great surprise, this proved unsuccessful.

     

    After several attempts I was hoping that someone with greater knowledge would have the correct sample of the settings in the docker setup so I can cross reference the errors of my ways, forgive my ignorance.

     

    Any help would be appreciated :-)