Comments (5)
Thanks for reporting, as from your config, WebP Server Go is listening on port 3333, you've said "When I click on a video link", are you visiting something like http://<some_ip_or_domain>:3333/path/to/some.mp4
?
Or is there any reverse proxy in front of WebP Server Go?
from webp_server_go.
Yes, I used nginx for proxy. My video link is similar to this: http://10.0.2.189/group1/11.mp4?name=11.mp4&download=0
Nginx configuration:
location /group1 {
proxy_pass http://10.0.2.189:3333;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
from webp_server_go.
Great, maybe you can try proxy_pass
only images to WebP Server Go(http://10.0.2.189:3333/
) while other requests proxy_pass
directly to your source(http://10.0.2.189:10001/
), an example Nginx config might like this(I haven't tested this config so I'm not sure whether it works as intended)
location ~* ^/group1/.*\.(?:jpg|jpeg|gif|png|svg|heic|bmp|nef|webp)$ {
proxy_pass http://10.0.2.189:3333;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /group1/ {
proxy_pass http://10.0.2.189:10001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
from webp_server_go.
I tried it and it is correct. Currently, the link can be accessed normally; I need more tests, thank you!
from webp_server_go.
Glad it helps, closing this issue now, if you need more help free feel to reopen this.
from webp_server_go.
Related Issues (20)
- Can't get webp_server_go work HOT 5
- Requests with too large headers fields are not logged HOT 4
- NEF image size is wrong and extra parameters are invalid HOT 5
- Delete older files from storage HOT 2
- Clear older files autometically HOT 2
- Image not found! HOT 2
- Readme broken link HOT 1
- Exclude certain sub folder HOT 1
- A problem converting GIF images to AVIF format HOT 6
- set maxWidth and/or maxHeight HOT 9
- When the instantaneous request volume is large, a large amount of CPU and memory will be consumed. HOT 1
- Couldn't load xx.ico file HOT 3
- Server don't conversions images to jxl format in Firefox Nightly HOT 3
- Cropping mode environment variable HOT 4
- Directory traversal with malformed HTTP request HOT 3
- Webp Cloud是不是比开源的这个支持更多功能? HOT 1
- 多路径域名识别错误 HOT 6
- file without extension HOT 6
- 如何限制硬盘的使用 HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webp_server_go.