Hi all
My thanks to Merlin. My donation seemed a bit small when I looked over at the donation thread. I hope this doesn't come across poorly!
I wanted dnsmasq to resolve some names on my network, so I added them to /etc/hosts.dnsmasq, which seemed like the most appropriate place given the addn-hosts=/etc/hosts.dnsmasq line in /etc/dnsmasq.conf.
To prevent the changes from being lost, I created the file /jffs/configs/hosts.dnsmasq.add but on reboot the I lost my changes unfortunately. Dnsmasq picks up on /etc/hosts too however, so I made an /jffs/configs/hosts.add instead which works fine.
I wasn't sure if this was expected behaviour or a bug, so wanted to check here.
I have nginx on my raspberry pi proxying requests sent from the router which is handy because I can type nzbget.mydomain.com rather than the ugly ip + port. Slightly neurotic but I learnt something
.
If anyone's interested here's the code I used:
Thanks
My thanks to Merlin. My donation seemed a bit small when I looked over at the donation thread. I hope this doesn't come across poorly!

I wanted dnsmasq to resolve some names on my network, so I added them to /etc/hosts.dnsmasq, which seemed like the most appropriate place given the addn-hosts=/etc/hosts.dnsmasq line in /etc/dnsmasq.conf.
To prevent the changes from being lost, I created the file /jffs/configs/hosts.dnsmasq.add but on reboot the I lost my changes unfortunately. Dnsmasq picks up on /etc/hosts too however, so I made an /jffs/configs/hosts.add instead which works fine.
I wasn't sure if this was expected behaviour or a bug, so wanted to check here.
I have nginx on my raspberry pi proxying requests sent from the router which is handy because I can type nzbget.mydomain.com rather than the ugly ip + port. Slightly neurotic but I learnt something

If anyone's interested here's the code I used:
Code:
server {
server_name nzbget.mydomain.com;
location / {
proxy_pass http://127.0.0.1:6789;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Thanks