mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-03-31 06:24:09 -04:00
add nginx example for sub path
This commit is contained in:
19
README.md
19
README.md
@@ -129,6 +129,25 @@ http://localhost:8091 {
|
||||
}
|
||||
```
|
||||
|
||||
Or nginx:
|
||||
|
||||
```
|
||||
http {
|
||||
server {
|
||||
listen 8091;
|
||||
server_name localhost;
|
||||
location /upsnap-sub-path/ {
|
||||
proxy_pass http://localhost:8090/;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Paths must end with a trailing `/`.
|
||||
|
||||
## 🐧 Install from the [AUR](https://aur.archlinux.org/packages/upsnap-bin)
|
||||
|
||||
Reference in New Issue
Block a user