Skip to content

Commit

Permalink
Add documentation for nginx reverse proxy (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
josvo committed Apr 30, 2021
1 parent 170d2a2 commit 5fcf389
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion site/content/docs/Repository Server/_index.md
Expand Up @@ -295,4 +295,32 @@ or simply:

```
$ killall -SIGHUP kopia
```
```

## Kopia behind a reverse proxy

Kopia server can be run behind a reverse proxy. Here a working example for nginx.

```shell
server {
listen 443 ssl http2;
server_name mydomain.com;

ssl_certificate_key /path/to/your/key.key;
ssl_certificate /path/to/your/cert.crt;

client_max_body_size 0; # Allow unlimited upload size

location / {
grpc_pass grpcs://localhost:51515; # Adapt if your kopia is running on another server
}
}
```

Make sure you use a recent nginx version (>=1.16) and you start your kopia server with a certificate (`--insecure` does not work), e.g.

```shell
kopia server start --address 0.0.0.0:51515 --tls-cert-file ~/my.cert --tls-key-file ~/my.key
```

You can now connect to your kopia server via reverse proxy with your domain: `mydomain:com:443`.

0 comments on commit 5fcf389

Please sign in to comment.