Nextcloud snap version - How to edit configuration?
I installed nextcloud using sudo snap install nextcloud on my vps. Now I can connect to it at localhost:80 from the vps itself. If I forward the 80-th port via ssh from my local computer, then I can connect from it too. I want nextcloud to work at nextcloud.mydomain.dmn, so I obviously need to do some configuration, however I don't know how to do that with snap.
There is a readonly /snap/nextcloud/current/ directory with conf/httpd.conf. I can't edit it. It's provided by the following systemd unit:
# cat /etc/systemd/system/snap-nextcloud-2184.mount
[Unit]
Description=Mount unit for nextcloud
[Mount]
What=/var/lib/snapd/snaps/nextcloud_2184.snap
Where=/snap/nextcloud/2184
Type=squashfs
Options=nodev,ro
[Install]
WantedBy=multi-user.target
It seems there are not nextcloud-related config files in /etc except for systemd units.
nextcloud
add a comment |
I installed nextcloud using sudo snap install nextcloud on my vps. Now I can connect to it at localhost:80 from the vps itself. If I forward the 80-th port via ssh from my local computer, then I can connect from it too. I want nextcloud to work at nextcloud.mydomain.dmn, so I obviously need to do some configuration, however I don't know how to do that with snap.
There is a readonly /snap/nextcloud/current/ directory with conf/httpd.conf. I can't edit it. It's provided by the following systemd unit:
# cat /etc/systemd/system/snap-nextcloud-2184.mount
[Unit]
Description=Mount unit for nextcloud
[Mount]
What=/var/lib/snapd/snaps/nextcloud_2184.snap
Where=/snap/nextcloud/2184
Type=squashfs
Options=nodev,ro
[Install]
WantedBy=multi-user.target
It seems there are not nextcloud-related config files in /etc except for systemd units.
nextcloud
add a comment |
I installed nextcloud using sudo snap install nextcloud on my vps. Now I can connect to it at localhost:80 from the vps itself. If I forward the 80-th port via ssh from my local computer, then I can connect from it too. I want nextcloud to work at nextcloud.mydomain.dmn, so I obviously need to do some configuration, however I don't know how to do that with snap.
There is a readonly /snap/nextcloud/current/ directory with conf/httpd.conf. I can't edit it. It's provided by the following systemd unit:
# cat /etc/systemd/system/snap-nextcloud-2184.mount
[Unit]
Description=Mount unit for nextcloud
[Mount]
What=/var/lib/snapd/snaps/nextcloud_2184.snap
Where=/snap/nextcloud/2184
Type=squashfs
Options=nodev,ro
[Install]
WantedBy=multi-user.target
It seems there are not nextcloud-related config files in /etc except for systemd units.
nextcloud
I installed nextcloud using sudo snap install nextcloud on my vps. Now I can connect to it at localhost:80 from the vps itself. If I forward the 80-th port via ssh from my local computer, then I can connect from it too. I want nextcloud to work at nextcloud.mydomain.dmn, so I obviously need to do some configuration, however I don't know how to do that with snap.
There is a readonly /snap/nextcloud/current/ directory with conf/httpd.conf. I can't edit it. It's provided by the following systemd unit:
# cat /etc/systemd/system/snap-nextcloud-2184.mount
[Unit]
Description=Mount unit for nextcloud
[Mount]
What=/var/lib/snapd/snaps/nextcloud_2184.snap
Where=/snap/nextcloud/2184
Type=squashfs
Options=nodev,ro
[Install]
WantedBy=multi-user.target
It seems there are not nextcloud-related config files in /etc except for systemd units.
nextcloud
nextcloud
asked Aug 23 '17 at 5:37
CrabMan
18016
18016
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The Nextcloud snap is as far I can see not using a vhost, so it doesn't serve Nextcloud for specific domains. You should open port 80 and 443 on your VPS and setup DNS so nextcloud.mydomain.dmnpoints to your VPS.
You'll have to configure Nextcloud to trust this new domain, this is described here (https://github.com/nextcloud/nextcloud-snap/wiki/Connecting-the-Nextcloud-Box-to-the-Internet#3-add-your-external-domain-to-nextcloud):
List the domains you're currently using
sudo nextcloud.occ config:system:get trusted_domains
Create a new entry
sudo nextcloud.occ config:system:set trusted_domains 2 --value=nextcloud.mydomain.dmn
Note: replace "your.domain" with the domain name registered at step 1
and replace the number 2 with the actual number where the new entry
will be created. For a 3rd entry, you would use the number 3
That's it. Here is some more information about the snap:
- https://github.com/nextcloud/nextcloud-snap/wiki/Included-CLI-utilities
- https://github.com/nextcloud/nextcloud-snap/wiki/Enabling-HTTPS-(SSL,-TLS)
add a comment |
Nextcloud lauches his own Apache server when installed through snap. By default, it listens on port 80.
(source) You can activate ssl with:
sudo nextcloud.enable-https lets-encrypt
and add your domain to trusted domains in:
/var/snap/nextcloud/current/nextcloud/config/config.php
(source) You can also change the port:
sudo snap set nextcloud ports.https=444
And serve it behind a proxy.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f387793%2fnextcloud-snap-version-how-to-edit-configuration%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The Nextcloud snap is as far I can see not using a vhost, so it doesn't serve Nextcloud for specific domains. You should open port 80 and 443 on your VPS and setup DNS so nextcloud.mydomain.dmnpoints to your VPS.
You'll have to configure Nextcloud to trust this new domain, this is described here (https://github.com/nextcloud/nextcloud-snap/wiki/Connecting-the-Nextcloud-Box-to-the-Internet#3-add-your-external-domain-to-nextcloud):
List the domains you're currently using
sudo nextcloud.occ config:system:get trusted_domains
Create a new entry
sudo nextcloud.occ config:system:set trusted_domains 2 --value=nextcloud.mydomain.dmn
Note: replace "your.domain" with the domain name registered at step 1
and replace the number 2 with the actual number where the new entry
will be created. For a 3rd entry, you would use the number 3
That's it. Here is some more information about the snap:
- https://github.com/nextcloud/nextcloud-snap/wiki/Included-CLI-utilities
- https://github.com/nextcloud/nextcloud-snap/wiki/Enabling-HTTPS-(SSL,-TLS)
add a comment |
The Nextcloud snap is as far I can see not using a vhost, so it doesn't serve Nextcloud for specific domains. You should open port 80 and 443 on your VPS and setup DNS so nextcloud.mydomain.dmnpoints to your VPS.
You'll have to configure Nextcloud to trust this new domain, this is described here (https://github.com/nextcloud/nextcloud-snap/wiki/Connecting-the-Nextcloud-Box-to-the-Internet#3-add-your-external-domain-to-nextcloud):
List the domains you're currently using
sudo nextcloud.occ config:system:get trusted_domains
Create a new entry
sudo nextcloud.occ config:system:set trusted_domains 2 --value=nextcloud.mydomain.dmn
Note: replace "your.domain" with the domain name registered at step 1
and replace the number 2 with the actual number where the new entry
will be created. For a 3rd entry, you would use the number 3
That's it. Here is some more information about the snap:
- https://github.com/nextcloud/nextcloud-snap/wiki/Included-CLI-utilities
- https://github.com/nextcloud/nextcloud-snap/wiki/Enabling-HTTPS-(SSL,-TLS)
add a comment |
The Nextcloud snap is as far I can see not using a vhost, so it doesn't serve Nextcloud for specific domains. You should open port 80 and 443 on your VPS and setup DNS so nextcloud.mydomain.dmnpoints to your VPS.
You'll have to configure Nextcloud to trust this new domain, this is described here (https://github.com/nextcloud/nextcloud-snap/wiki/Connecting-the-Nextcloud-Box-to-the-Internet#3-add-your-external-domain-to-nextcloud):
List the domains you're currently using
sudo nextcloud.occ config:system:get trusted_domains
Create a new entry
sudo nextcloud.occ config:system:set trusted_domains 2 --value=nextcloud.mydomain.dmn
Note: replace "your.domain" with the domain name registered at step 1
and replace the number 2 with the actual number where the new entry
will be created. For a 3rd entry, you would use the number 3
That's it. Here is some more information about the snap:
- https://github.com/nextcloud/nextcloud-snap/wiki/Included-CLI-utilities
- https://github.com/nextcloud/nextcloud-snap/wiki/Enabling-HTTPS-(SSL,-TLS)
The Nextcloud snap is as far I can see not using a vhost, so it doesn't serve Nextcloud for specific domains. You should open port 80 and 443 on your VPS and setup DNS so nextcloud.mydomain.dmnpoints to your VPS.
You'll have to configure Nextcloud to trust this new domain, this is described here (https://github.com/nextcloud/nextcloud-snap/wiki/Connecting-the-Nextcloud-Box-to-the-Internet#3-add-your-external-domain-to-nextcloud):
List the domains you're currently using
sudo nextcloud.occ config:system:get trusted_domains
Create a new entry
sudo nextcloud.occ config:system:set trusted_domains 2 --value=nextcloud.mydomain.dmn
Note: replace "your.domain" with the domain name registered at step 1
and replace the number 2 with the actual number where the new entry
will be created. For a 3rd entry, you would use the number 3
That's it. Here is some more information about the snap:
- https://github.com/nextcloud/nextcloud-snap/wiki/Included-CLI-utilities
- https://github.com/nextcloud/nextcloud-snap/wiki/Enabling-HTTPS-(SSL,-TLS)
answered Aug 24 '17 at 17:03
LEDfan
10115
10115
add a comment |
add a comment |
Nextcloud lauches his own Apache server when installed through snap. By default, it listens on port 80.
(source) You can activate ssl with:
sudo nextcloud.enable-https lets-encrypt
and add your domain to trusted domains in:
/var/snap/nextcloud/current/nextcloud/config/config.php
(source) You can also change the port:
sudo snap set nextcloud ports.https=444
And serve it behind a proxy.
add a comment |
Nextcloud lauches his own Apache server when installed through snap. By default, it listens on port 80.
(source) You can activate ssl with:
sudo nextcloud.enable-https lets-encrypt
and add your domain to trusted domains in:
/var/snap/nextcloud/current/nextcloud/config/config.php
(source) You can also change the port:
sudo snap set nextcloud ports.https=444
And serve it behind a proxy.
add a comment |
Nextcloud lauches his own Apache server when installed through snap. By default, it listens on port 80.
(source) You can activate ssl with:
sudo nextcloud.enable-https lets-encrypt
and add your domain to trusted domains in:
/var/snap/nextcloud/current/nextcloud/config/config.php
(source) You can also change the port:
sudo snap set nextcloud ports.https=444
And serve it behind a proxy.
Nextcloud lauches his own Apache server when installed through snap. By default, it listens on port 80.
(source) You can activate ssl with:
sudo nextcloud.enable-https lets-encrypt
and add your domain to trusted domains in:
/var/snap/nextcloud/current/nextcloud/config/config.php
(source) You can also change the port:
sudo snap set nextcloud ports.https=444
And serve it behind a proxy.
answered Dec 21 '18 at 15:41
Hugo Trentesaux
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f387793%2fnextcloud-snap-version-how-to-edit-configuration%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown