diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-04-28 10:12:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-28 10:12:22 -0500 |
| commit | 20177abd070698f4062624b57477201714a32e10 (patch) | |
| tree | 31a28a1383e9c84b9919293c5f0b4380f130fa1d /docs/reverse_proxy.md | |
| parent | 0a5f0bdd2dd5df125d9d5be53bf55ffa37d26cda (diff) | |
| parent | 11f2671e64e53f4d6272abf8443df3b9c9216e15 (diff) | |
| download | slskd-20177abd070698f4062624b57477201714a32e10.tar.gz | |
Merge pull request #903 from slskd/proxy
Document reverse proxy config for Apache and IIS
Diffstat (limited to 'docs/reverse_proxy.md')
| -rw-r--r-- | docs/reverse_proxy.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md index c1992fb5..c6265814 100644 --- a/docs/reverse_proxy.md +++ b/docs/reverse_proxy.md @@ -38,4 +38,40 @@ server { proxy_set_header Host $host; } } +``` + +## Apache + +With `URL_BASE` set to `/slskd`: + +``` +ProxyPass /slskd/ http://the.local.ip.address:5030/slskd/ upgrade=websocket +ProxyPassReverse /slskd/ http://the.local.ip.address:5030/slskd/ + +``` + +From [discussion #890](https://github.com/slskd/slskd/discussions/890) + +## IIS (Windows) + +You'll need the [URL rewrite module](https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module) installed before you begin. + +Update the `web.config` for your root site to add a rewrite rule. Here's an example that rewrites `<your site>/slskd`. + +You'll need to set `URL_BASE` to `/slskd` in the slskd config. + +```xml +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <system.webServer> + <rewrite> + <rules> + <rule name="slskd" stopProcessing="true"> + <match url="slskd(/.*)" /> + <action type="Rewrite" url="http://<ip of slskd>:<port of slskd>/slskd{R:1}" /> + </rule> + </rules> + </rewrite> + </system.webServer> +</configuration> ```
\ No newline at end of file |
