I'm trying to setup organizr to have easy access to everything in my homelab and most things work fine but when I add my OMV instance it's giving me a blank page. Is there any way for me to enable iframes so that I can access OMV from within Organizr? (All of this is behind a caddy reverse proxy btw) I'm on the latest version of OMV with all packages up to date. I read another thread about getting it to work but they used the links plugin and I'm not able to find that in the default repo or the extras repo.
Organizr in front of OMV
-
- OMV 3.x
- SelfhostedPro
-
-
I have no idea if this will work but this is the code that the links plugin used. Put it in a file, make it executable, and execute it.
Bash
Alles anzeigen#!/bin/bash set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_CSP_ENABLE 0 omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_XFRAMEOPTIONS_ENABLE false omv-mkconf nginx invoke-rc.d nginx restart omv_purge_internal_cache
-
Worked perfectly! Thank you so much! Sorry for PMing you btw. Just noticed your signature. Not surprised you get flooded by pms with how much help you've provided everyone.
-
I have no idea if this will work but this is the code that the links plugin used. Put it in a file, make it executable, and execute it.
Bash
Alles anzeigen#!/bin/bash set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_CSP_ENABLE 0 omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_XFRAMEOPTIONS_ENABLE false omv-mkconf nginx invoke-rc.d nginx restart omv_purge_internal_cache
Hey this worked to some extend, it allows me to view the login page. Then i get a login loop, redirects me to to login page once filled in my username/password.
Please advise!Kind regards
-
Hey this worked to some extend, it allows me to view the login page. Then i get a login loop, redirects me to to login page once filled in my username/password.
Please advise!This code didn't cause a login loop. Sounds like your root filesystem is full and/or you need to clear your browser cache.
-
I have no idea if this will work but this is the code that the links plugin used. Put it in a file, make it executable, and execute it.
Bash
Alles anzeigen#!/bin/bash set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_CSP_ENABLE 0 omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_XFRAMEOPTIONS_ENABLE false omv-mkconf nginx invoke-rc.d nginx restart omv_purge_internal_cache
This worked for me too!
Quick side question will these changes be sticky or will I need to run that script again on reboot/update?
Thanks!
-
Quick side question will these changes be sticky or will I need to run that script again on reboot/update?
They actually make changes to /etc/default/openmediavault. So, they should survive reboots and upgrades.
-
omv-mkconf does not exists on OMV 5
-
mv-mkconf does not exists on OMV 5
Correct and neither does the nginx plugin.
-
Correct and neither does the nginx plugin.
How can I get organizr to work on omv 5? Your script worked on omv 4.
-
Docker. See the organizr homepage for details.
-
Docker. See the organizr homepage for details.
I'm using docker, and it works fine, but I cannot add omv as an iFrame window inside organizr.
It used to work through the script posted by ryecoaaron on omv4.
-
I suspect there are more organizr user on the organizr forum that can help you getting it to work. It seems to be an organizr issue. Possibly clashing ports?
-
It is still the same issue as OMV 4. I didn't realize you were trying to put the OMV web interface in a iframe.
set -e
. /usr/share/openmediavault/scripts/helper-functions
omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_CSP_ENABLE 0
omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_XFRAMEOPTIONS_ENABLE false
omv-salt stage run prepare
-
It is still the same issue as OMV 4. I didn't realize you were trying to put the OMV web interface in a iframe.
set -e
. /usr/share/openmediavault/scripts/helper-functions
omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_CSP_ENABLE 0
omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_XFRAMEOPTIONS_ENABLE false
omv-salt stage run prepare
thank you, it works now.
-
It is still the same issue as OMV 4. I didn't realize you were trying to put the OMV web interface in a iframe.
set -e
. /usr/share/openmediavault/scripts/helper-functions
omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_CSP_ENABLE 0
omv_set_default OMV_NGINX_SITE_WEBGUI_SECURITY_XFRAMEOPTIONS_ENABLE false
omv-salt stage run prepare
My omv 5 (ssh/root) give me this:
/etc/default/openmediavault: line 1: This: command not found
-
You missed the space between the dot . and the /etc/default/openmediavault. You typed ./etc/default/openmediavault, not . /etc/default/openmediavault.
Greetings
David
-
You missed the space between the dot . and the /etc/default/openmediavault. You typed ./etc/default/openmediavault, not . /etc/default/openmediavault.
Greetings
David
Hmm im pretty sure thats not the case..
This is the output from the script with the space:
/etc/default/openmediavault: line 1: This: command not foundand this is the output with no space:
./FixIFrameOMV.sh: line 8: ./etc/default/openmediavault: No such file or directory
Strange? -
Strange?
Must be a typo somewhere. Use the following instead:
source /etc/default/openmediavault
-
Must be a typo somewhere. Use the following instead:
source /etc/default/openmediavault
Still the same result?
/etc/default/openmediavault: line 1: This: command not found
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!