Environment variable ROCKET_ADDR is ignored #850

Closed
opened 2026-02-04 23:06:02 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @pilophae on GitHub (Oct 30, 2020).

Subject of the issue

Environment variable ROCKET_ADDR is ignored

Your environment

  • Bitwarden_rs version: 1.17.0-archlinux-sqlite-1
  • Install method: Built from source
  • Clients used: N/A
  • Reverse proxy and version: N/A
  • Version of mysql/postgresql: N/A
  • Other relevant information:

Steps to reproduce

I'm trying to run bitwarden_rs behind a reverse proxy and thus limiting the listening address to localhost or equivalent. So I configured the environment variable ROCKET_ADDR as shown in the example configuration file, like so:

ROCKET_ADDR=127.0.0.1

Expected behaviour

I expected bitwarden_rs to listen to the specified IP address.

Actual behaviour

bitwarden_rs listens to all assigned IP addresses with the wildcard address 0.0.0.0

Relevant logs

[2020-10-30 05:31:04.527][start][INFO] Rocket has launched from http://0.0.0.0:8000
Originally created by @pilophae on GitHub (Oct 30, 2020). <!-- # ### NOTE: Please update to the latest version of bitwarden_rs before reporting an issue! This saves you and us a lot of time and troubleshooting. See: https://github.com/dani-garcia/bitwarden_rs/issues/1180 # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS addresses and especially passwords, if necessary. --> ### Subject of the issue Environment variable ROCKET_ADDR is ignored ### Your environment <!-- The version number, obtained from the logs or the admin diagnostics page --> <!-- Remember to check your issue on the latest version first! --> * Bitwarden_rs version: 1.17.0-archlinux-sqlite-1 <!-- How the server was installed: Docker image / package / built from source --> * Install method: Built from source * Clients used: N/A<!-- if applicable --> * Reverse proxy and version: N/A<!-- if applicable --> * Version of mysql/postgresql: N/A<!-- if applicable --> * Other relevant information: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start bitwarden_rs? --> I'm trying to run bitwarden_rs behind a reverse proxy and thus limiting the listening address to localhost or equivalent. So I configured the environment variable `ROCKET_ADDR` as shown in the example configuration file, like so: ``` ROCKET_ADDR=127.0.0.1 ``` ### Expected behaviour <!-- Tell us what should happen --> I expected bitwarden_rs to listen to the specified IP address. ### Actual behaviour <!-- Tell us what happens instead --> bitwarden_rs listens to all assigned IP addresses with the wildcard address 0.0.0.0 ### Relevant logs <!-- Share some logfiles, screenshots or output of relevant programs with us. --> ``` [2020-10-30 05:31:04.527][start][INFO] Rocket has launched from http://0.0.0.0:8000 ```
Author
Owner

@pilophae commented on GitHub (Oct 30, 2020):

Oh, nevermind. I'm silly!

@pilophae commented on GitHub (Oct 30, 2020): Oh, nevermind. I'm silly!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#850