···8282If you are not deploying Rubywarden on its own hostname or want to alter the
8383paths for any reason, you can override them with environment variables:
84848585+- `RUBYWARDEN_ATTACHMENTS_URL` for the attachments URL - defaults to `/attachments`
8586- `RUBYWARDEN_BASE_URL` for the API base - defaults to `/api`
8687- `RUBYWARDEN_IDENTITY_BASE_URL` for the identity API base - defaults to
8788 `/identity`
···9192on a subdirectory called `/notbitwarden`, you would set the environment
9293variables in your startup script:
93949494- sudo -u _rubywarden env RUBYWARDEN_ENV=production RUBYWARDEN_BASE_URL=/notbitwarden/api RUBYWARDEN_IDENTITY_BASE_URL=/notbitwarden/identity RUBYWARDEN_ICONS_URL=/notbitwarden/icons bundle exec rackup -p 4567 config.ru
9595+ sudo -u _rubywarden env RUBYWARDEN_ENV=production RUBYWARDEN_BASE_URL=/notbitwarden/api RUBYWARDEN_IDENTITY_BASE_URL=/notbitwarden/identity RUBYWARDEN_ICONS_URL=/notbitwarden/icons RUBYWARDEN_ATTACHMENTS_URL=/notbitwarden/attachments bundle exec rackup -p 4567 config.ru
95969697Then you can configure the Bitwarden clients with a single server URL of
9798`https://example.com/notbitwarden`.