Comments (5)
UPDATE if it helps:
The following does not a 'Server Error' anymore, but shows 'Internet radio' and does not show 'Search by genre', etc:
I believe my error is at X-Forwarded-For...
<VirtualHost _default_:80>
ServerName marantz.vtuner.com
ServerAlias radiomarantz.com
<Location />
ProxyPreserveHost On
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s
RequestHeader set X-Forwarded-Proto %{REQUEST_SCHEME}s
# 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;
ProxyPass http://127.0.0.1:8010/
ProxyPassReverse http://127.0.0.1:8010/
</Location>
ErrorLog ${APACHE_LOG_DIR}/error.vtuner.log
CustomLog ${APACHE_LOG_DIR}/access.vtuner.log combined
</VirtualHost>
from ycast.
It's not directly related to the apache2 config, but when I brought up a virtual machine on CentOs 9 recently, I ran into trouble with running yCast on the local loopback interface and firewalld.
The workaround was to not tie yCast to the localhost interface, and use firewalld to redirect port 80 like so:
yCast
/usr/bin/python3 -m ycast -p 8010 -c /etc/ycast/stations.yaml -d
(note how -l 127.0.0.1
is absent from the above config).
firewalld
sudo firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8010
sudo firewall-cmd --runtime-to-permanent
This is a single-purpose set-up, so I don't need to worry much about running a webserver or anything else.
from ycast.
Thanks for your idea 👍 , just implemented it with iptables (only for my LAN, because I have external http requests):
sudo iptables -t nat -A PREROUTING -s 192.168.1.1/24 -p tcp --dport 80 -j REDIRECT --to-port 8010
Everything works ok from my home LAN devices, except from my NA7004 😞 which asks me to visit radiomarantz.com...
So I believe that it looks directly into an IP and not into a domain.
Any other device from my LAN is redirected correctly to myhomeserver/ycast
from:
radiomarantz.com
*.vtuner.com
Someday I may try to sniff NA7004's requests and keep up inform any interested.
from ycast.
@dkarnout, I'm glad it helped you. An http server is of course a much better solution, but I have only a single device, so I guess for that use case it's ok.
I don't have an NA7004, but I'd be surprised if it's a different logic to mine (MCR610); is the DNS server set correctly on your NA7004?
I'm only redirecting *.vtuner.com
and vtuner.com
, which I'm doing directly on my router, and the MCR610 receives the router's IP address as DNS server via DHCP. The former should cover denon.vtuner.com
, which I believe is what Marantz uses.
My MCR610 does occasionally lose network connectivity completely, I am only able to restore it by resetting it completely in this case (unplug the power, and hold the <M-DAX>
and <DISPLAY>
buttons while plugging it back in). This means losing all settings unfortunately...
from ycast.
@SpeedyGoneZales I managed it with your help (again)! The problem was NA7004's DNS setting as you said.
While had already put my router IP (192.168.1.1) at:
Menu -> Network -> Connection -> Primary DNS
, the value does not store until you follow after that
Menu -> Network -> Connection -> Connection
, and that was my problem.
So I can confirm yCast works flawlessly for NA7004 with mandatory both local DNS records:
denon.vtuner.com
and
denon2.vtuner.com
.
Thank you again and do have nice holidays!
from ycast.
Related Issues (20)
- Confirmed Technics Ottava SC-C70 HOT 3
- What is roughly needed to implement the bookmark functionality? HOT 2
- Ycast
- How to create a manual entry in your DNS server? HOT 2
- Ycast Failure With Aluratek AIRMM01F Internet Clock/Radio HOT 2
- Problem with install ycast on router keenetic HOT 2
- Confirmed working on Marantz NA7004
- Ycast with Cabasse wireless speaker not working HOT 2
- Marantz NR-1504 is also supported
- Stream station image not loaded
- installation help HOT 4
- Always a 404 result HOT 4
- Noxon 2 Audio, not working
- Pi-Hole setup for Yamaha ycast HOT 1
- No retry if the randomly picked server all.api.radio-browser.info fails. HOT 7
- Grundig Sonoclock 890A-Web fails reading the station list HOT 3
- Confirmed working Marantz NR-1604 and NR-1607
- Confirmed working Denon AVR-X1100W
- Working but no radio station images HOT 2
- YCast in a virtual environment HOT 1
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 ycast.