diff --git a/site/content/docs/Repository Server/_index.md b/site/content/docs/Repository Server/_index.md index 5ffb189b07..90c9e9c101 100644 --- a/site/content/docs/Repository Server/_index.md +++ b/site/content/docs/Repository Server/_index.md @@ -295,4 +295,32 @@ or simply: ``` $ killall -SIGHUP kopia -``` \ No newline at end of file +``` + +## 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`. \ No newline at end of file