NGINX config file for OMV webgui (using it with the linuxserver letsencrypt container)

  • Hey :)
    I´m trying this since days...
    It just t don´t work for me :/ I edited a proxy conf file to
    server {
    listen 443 ssl;
    #add_header Strict-Transport-Security "max-age=15552000" always;
    add_header Referrer-Policy no-referrer;
    add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
    #add_header X-Frame-Options SAMEORIGIN always;
    #add_header X-Content-Type-Options nosniff always;
    #add_header X-XSS-Protection "1; mode=block" always;



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



    server_name *my-domain.duckdns.org;



    include /config/nginx/ssl.conf;



    client_max_body_size 0;



    location / {
    include /config/nginx/proxy.conf;
    proxy_redirect http:// https://;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_pass http://192.168.1.67:80;
    }
    }
    without luck. Always appears the startpage of nginx
    local no problems, but nothing changed for my domain.
    I also deleted the browser cache...really dont know what is wrong
    anybody can help, plz
    tia
    miker

  • im using the linuxserver/letsencrypt docker image to automatically generate ssl certificates and this also has nginx built in to act as the proxy to direct to the web request to the correct web admin page, i use this to gain outside access for omv, nextcloud, transmission and also homeassistant.


    are you truing to use the omv built in nginx?

  • what I have done so far is setting up new omv
    doing all updates
    installing docker on omv extras
    setting up linuxserver/letsencrypt right to Technodads guide
    now I´m on point to install the generated certificate by importing the certificate from lets=>etc=>letsencrypt=>live=>mydomain=>privkey.pem and cert.pem
    to omv webgui=>certifikates=>ssl=>import ssl certficate private key and certivicate is that right to this point?
    tia
    Michael

  • Try this conf for omv gui.

  • I have attempted to do the same I have the LetsEncrypt docker container running with a reverse proxy setup to point back to the OMV webgui on the host machine.


    It nearly works in the access log I can see all the java script being returned but in the source of the webpage returned I see a header of 404 though nothing renders on the page.


    My setup


    Duckdns -> 443 on my router -> 443 LetsEncrypt container -> 8080 on OMV host


    So to call i use
    https://mydomain.duckdns.org/omv


    Anyone tried this?


    here is my proxy conf


    Bash
    #omv base proxy
    location /omv {
    include /config/nginx/proxy.conf;
    resolver 127.0.0.11 valid=30s;
    proxy_pass http://192.168.0.23:8080;
    }
  • I got it working so I thought I would post the nginx proxy configuration in case anyone else is trying to do the same.


  • ok try that just change the domain on line 14 and the correct ip on line 26 that should work i think

    Basically I am using this for my login from outside, it does work for few hours but after a while I am getting no login box until I stopped and restart letsencrypt docker actually I made a thread there OMV from outside no login box but I think maybe I can get a solution here.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!