Confused Reverse proxy and vaultwarden

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
jmf
Posts: 10
Joined: Fri Sep 24, 2021 1:38 pm

Confused Reverse proxy and vaultwarden

Post by jmf »

Hi

I'm really confused on how to setup a reverse proxy using lighttpd for vaultwarden. I've tried this config https://github.com/dani-garcia/vaultwar ... y-examples but lighttpd refuse to restart and I'm totally lost.

I understand there's security risks but I need a password manager that syncs with my phone and PC.

Does any one had a guide for a noob like me to set this up?

Please move this in the wrong section

Thanks for any help
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Confused Reverse proxy and vaultwarden

Post by Joulinar »

into which file you have added the configuration?

Could you share following pls

Code: Select all

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jmf
Posts: 10
Joined: Fri Sep 24, 2021 1:38 pm

Re: Confused Reverse proxy and vaultwarden

Post by jmf »

Joulinar wrote: Fri Sep 24, 2021 2:47 pm into which file you have added the configuration?

Could you share following pls

Code: Select all

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
There's no output. I deleted the entries that I copied from the site I mentioned when lighttpd couldn't restart
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Confused Reverse proxy and vaultwarden

Post by Joulinar »

ok and where did you added the config to before you removed it again?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jmf
Posts: 10
Joined: Fri Sep 24, 2021 1:38 pm

Re: Confused Reverse proxy and vaultwarden

Post by jmf »

Joulinar wrote: Fri Sep 24, 2021 3:03 pm ok and where did you added the config to before you removed it again?
Thanks for your replies.

I added it to /etc/lighttpd/conf-available/10-proxy.conf
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Confused Reverse proxy and vaultwarden

Post by Joulinar »

usually that would be the correct place but you would need to take care not to simple copy the code section as it contains server.modules += ( "mod_proxy" ) which is already present in 10-proxy.conf :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jmf
Posts: 10
Joined: Fri Sep 24, 2021 1:38 pm

Re: Confused Reverse proxy and vaultwarden

Post by jmf »

Joulinar wrote: Fri Sep 24, 2021 3:24 pm usually that would be the correct place but you would need to take care not to simple copy the code section as it contains server.modules += ( "mod_proxy" ) which is already present in 10-proxy.conf :)
Nope it didn't working. I'll try it again and see what the output is to the command you asked me to run previously
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Confused Reverse proxy and vaultwarden

Post by Joulinar »

maybe you can share 10-proxy.conf

Btw: port for vaultwarden is 8001 and not 4567 as in the example.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jmf
Posts: 10
Joined: Fri Sep 24, 2021 1:38 pm

Re: Confused Reverse proxy and vaultwarden

Post by jmf »

Joulinar wrote: Fri Sep 24, 2021 2:47 pm into which file you have added the configuration?

Could you share following pls

Code: Select all

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
This is the output

2021-09-24 23:29:34: sock_addr.c.435) getaddrinfo failed: Name or service not known '<SERVER>'
2021-09-24 23:29:34: server.c.1517) Configuration of plugins failed. Going down.
User avatar
Joulinar
Posts: 5996
Joined: Sat Nov 16, 2019 12:49 am

Re: Confused Reverse proxy and vaultwarden

Post by Joulinar »

pls share your config file

BTW: Is there a strong need to lighttpd? It's not the best choice for a revers proxy
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply