Merge pull request #13 from nextcloud/fix/9/fix-credential-screen
fix the initial credential screen
This commit is contained in:
commit
9ee27cb763
@ -108,7 +108,6 @@ class DockerController
|
|||||||
// set AIO_TOKEN
|
// set AIO_TOKEN
|
||||||
$config['AIO_TOKEN'] = bin2hex(random_bytes(24));
|
$config['AIO_TOKEN'] = bin2hex(random_bytes(24));
|
||||||
$this->configurationManager->WriteConfig($config);
|
$this->configurationManager->WriteConfig($config);
|
||||||
$this->configurationManager->SetIsContainerUpateAvailable(false);
|
|
||||||
|
|
||||||
// Stop domaincheck since apache would not be able to start otherwise
|
// Stop domaincheck since apache would not be able to start otherwise
|
||||||
$this->StopDomaincheckContainer();
|
$this->StopDomaincheckContainer();
|
||||||
|
@ -30,16 +30,6 @@ class ConfigurationManager
|
|||||||
return $this->GetConfig()['AIO_TOKEN'];
|
return $this->GetConfig()['AIO_TOKEN'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetIsContainerUpateAvailable() : bool {
|
|
||||||
return isset($this->GetConfig()['isContainerUpateAvailable']) ? $this->GetConfig()['isContainerUpateAvailable'] : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function SetIsContainerUpateAvailable(bool $value) : void {
|
|
||||||
$config = $this->GetConfig();
|
|
||||||
$config['isContainerUpateAvailable'] = $value;
|
|
||||||
$this->WriteConfig($config);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function SetPassword(string $password) : void {
|
public function SetPassword(string $password) : void {
|
||||||
$config = $this->GetConfig();
|
$config = $this->GetConfig();
|
||||||
$config['username'] = 'admin';
|
$config['username'] = 'admin';
|
||||||
|
@ -290,12 +290,8 @@ class DockerActionManager
|
|||||||
public function isAnyUpdateAvailable() {
|
public function isAnyUpdateAvailable() {
|
||||||
$id = 'nextcloud-aio-apache';
|
$id = 'nextcloud-aio-apache';
|
||||||
|
|
||||||
if ($this->configurationManager->GetIsContainerUpateAvailable()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->isContainerUpdateAvailable($id) !== "") {
|
if ($this->isContainerUpdateAvailable($id) !== "") {
|
||||||
$this->configurationManager->SetIsContainerUpateAvailable(true);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
29
readme.md
29
readme.md
@ -16,10 +16,21 @@ Included are:
|
|||||||
|
|
||||||
## How to use this?
|
## How to use this?
|
||||||
1. Install Docker on your Linux installations using:
|
1. Install Docker on your Linux installations using:
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -fsSL get.docker.com | sudo sh
|
curl -fsSL get.docker.com | sudo sh
|
||||||
```
|
```
|
||||||
2. Run the following command:
|
2. Make sure that the docker group has the correct groupid:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo groupmod -g 998 docker
|
||||||
|
```
|
||||||
|
3. Make sure to pull the latest image:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo docker pull nextcloud/all-in-one:latest
|
||||||
|
```
|
||||||
|
4. Run the following command in order to start the container:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo docker run -it \
|
sudo docker run -it \
|
||||||
@ -32,13 +43,19 @@ sudo docker run -it \
|
|||||||
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
|
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||||
nextcloud/all-in-one:latest
|
nextcloud/all-in-one:latest
|
||||||
```
|
```
|
||||||
3. After the initial startup, you should be able to open the Nextcloud AIO Interface now on port 8080 of this server.<br>
|
5. After the initial startup, you should be able to open the Nextcloud AIO Interface now on port 8080 of this server.<br>
|
||||||
E.g. https://internal.ip.of.this.server:8080<br>
|
E.g. https://internal.ip.of.this.server:8080<br>
|
||||||
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatially by opening the Nextcloud AIO Interface via:<br>
|
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatially by opening the Nextcloud AIO Interface via:<br>
|
||||||
https://your-domain-that-points-to-this-server.tld:8443
|
https://your-domain-that-points-to-this-server.tld:8443
|
||||||
|
|
||||||
Explanation of used ports:
|
### Which ports are mandatory to be open?
|
||||||
|
Only those (if you acces the Mastercontainer Interface internally via port 8080):
|
||||||
|
- `443/TCP` for the Nextcloud container
|
||||||
|
- `3478/TCP` and `3478/UPD` for the Talk container
|
||||||
|
|
||||||
- `80`: redirects to Nextcloud (HTTP) (is used for getting the certificate via ACME http-challenge for mastercontainer)
|
### Explanation of used ports:
|
||||||
- `8080`: Master Container Interface with self-signed certificate (HTTPS) (works always, also if only access via IP-address is possible, e.g. `https://internal.ip.address:8080/`)
|
- `8080/TCP`: Mastercontainer Interface with self-signed certificate (works always, also if only access via IP-address is possible, e.g. `https://internal.ip.address:8080/`)
|
||||||
- `8443`: Master Container Interface with valid automatic certificate via Let's Encrypt! (HTTPS) (Only works if you access the container via a public domain, e.g. `https://public.domain.com:8443/` and not via IP-address.)
|
- `80/TCP`: redirects to Nextcloud (is used for getting the certificate via ACME http-challenge for the Mastercontainer)
|
||||||
|
- `8443/TCP`: Mastercontainer Interface with valid certificate (only works if port 80 and 8443 are open and you point a domain to your server. It generates a valid certificate then automatically and access via e.g. `https://public.domain.com:8443/` is possible.)
|
||||||
|
- `443/TCP`: will be used by the Nextcloud container later on and needs to be open
|
||||||
|
- `3478/TCP` and `3478/UPD`: will be used by the Turnserver inside the Talk container and needs to be open
|
||||||
|
Loading…
x
Reference in New Issue
Block a user