mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
make nginx config more verbose
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
4cbc8c7e53
commit
d4645d50ab
1 changed files with 8 additions and 1 deletions
|
|
@ -236,7 +236,10 @@ Of course you need to modify `<your-nc-domain>` to the domain on which you want
|
||||||
Add this to you nginx config:
|
Add this to you nginx config:
|
||||||
|
|
||||||
```
|
```
|
||||||
location / {
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name <your-nc-domain>;
|
||||||
|
location / {
|
||||||
proxy_pass http://localhost:11000;
|
proxy_pass http://localhost:11000;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
@ -248,6 +251,10 @@ location / {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
}
|
}
|
||||||
|
ssl_certificate /etc/letsencrypt/live/<your-nc-domain>/fullchain.pem; # managed by certbot on host machine
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/<your-nc-domain>/privkey.pem; # managed by certbot on host machine
|
||||||
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
and this to the http{...}-section in your nginx.conf:
|
and this to the http{...}-section in your nginx.conf:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue