Currently any connection to port 8080 is being forwarded to port 443 on the owncloud instance.
DOCKERINSTANCEID pschmitt/owncloud “/usr/bin/run.sh” 27 hours ago Up 4 seconds 80/tcp, 0.0.0.0:8080->443/tcp owncloud
But I want to create an Alias IP and forward that on port 443 like this:
DOCKERINSTANCEID pschmitt/owncloud “/usr/bin/run.sh” 27 hours ago Up 4 seconds 80/tcp, 10.0.5.108:443->443/tcp owncloud
How do I set that up?
8080 is the default value auto filled in the install wizard during the Rock-on installation. You can provide other port number instead of 8080. 443 will cause problems because Rockstor web-ui run on that port. There is a pending issue to support custom port but it’s not supported yet.
This is off the top of my head and i’m not prepared to enable Rock-Ons to test the forwarding part
On the rockstor machine
ifconfig eth0:1 (ip)/cidr
e.g if your main IP was 192.168.1.10 and you wanted 192.168.1.14 it would be
ifconfig eth0:1 192.168.1.14/24
Then change the 0.0.0.0:8080 > 443/tcp owncloud to (ip):443 > 443/tcp owncloud
so in my above example it would 192.168.1.14:443 > 443/tcp owncloud
If that works then we’ll need to either script the addation of the IP address or change the networking config to make the ifalias permanent
Thanks for the comment.
I finally decided to setup owncloud on a dedicated virtual machine and mount the data share from the rockstor NAS via NFS. I think this is a more flexible approach.
Did you have “fun” with permissions when doing that?
No issues with permissions so far, but havent tested it completely.
I just created the apache user with same uid/gid on the rockstor server and changed owncloud share permission and ownership .
Ah I just mounted with no root squash (possibly not the best approach from a secuirty viewpoint)
Edit: That reminds me @suman mind taking a look at issue #991 it’s tripped me up a couple times if I forget about it.