I think I'm not doing something right:
Even if I set Host Type as name-based in the Nginx plug-in, set the subdomain name, then I choose enable SSL, port 443 and "only use SSL" and save and apply settings, then I get an error and OMV UI dies. That's because the plug-in creates both listen directives creating conflict with the OMV UI which also runs on 443. Here is the config the plug-in generates (changed real domain name):
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/ssl/certs/openmediavault-63538c91-1c8a-45b1-b6b4-01aa85fd605b.crt;
ssl_certificate_key /etc/ssl/private/openmediavault-63538c91-1c8a-45b1-b6b4-01aa85fd605b.key;
server_name torrent.lan.example.com;
set $root_path "/srv/dev-disk-by-label-store/public_html";
root $root_path;
index index.html;
access_log /var/log/nginx/668865ad-30c8-4452-b53b-713f7030ce62-access.log;
error_log /var/log/nginx/668865ad-30c8-4452-b53b-713f7030ce62-error.log;
large_client_header_buffers 4 32k;
location ^~ / {
proxy_pass http://127.0.0.1:9091;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 1d;
}
}
Alles anzeigen
If I manually edit the generated zzz-omv-nginx config file and delete the first IPv4 listen directive and leave only listen [::]:443 ssl; and restart nginx then it works. However, when I go back into OMV UI it will say I have unsaved settings (probably because of the manual edit) and if I save the settings it adds the listen 443 ssl; directive back, crashing the UI again. Not sure what I'm doing wrong.