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 *;

    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";
    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

  • 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?

  • no, I use the linuxserver/letsencrypt too verificatio is duckdns, not http get a wildcard certiticate from Le without errors
    getting crazy with reverse proxy :(

  • 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?

  • 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

    Anyone tried this?

    here is my proxy conf

    #omv base proxy
    location /omv {
        include /config/nginx/proxy.conf;
        resolver valid=30s;
  • 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!