Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to use custom HTTP public port to permit rootless run #395

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

Trim
Copy link
Member

@Trim Trim commented Sep 20, 2024

This commit introduces two new global variables MY_PUBLIC_URL and IMG_PUBLIC_URL which should be used now to build URLs.


Related reported issues:

@Trim Trim force-pushed the configurable-public-port branch 7 times, most recently from bed1e74 to a2d6482 Compare September 22, 2024 19:55
@Trim Trim self-assigned this Sep 22, 2024
@Trim Trim marked this pull request as ready for review September 22, 2024 19:59
This commit introduces two new global constants MY_PUBLIC_URL and
IMG_PUBLIC_URL which should be used now to build URLs.

For alpha and production Ruby environments, they are fixed with their real
values directly in the `config/environments/*.rb` files.

For the development Ruby environment, they are defined by default to
`http://dlfp.lo` and `http://image.dlfp.lo`. You can customize either by
updating the `config/environments/development.rb` file or by setting the
*process* environment variables `DOMAIN`, `DOMAIN_HTTP_PORT`, `IMAGE_DOMAIN`
and `IMAGE_DOMAIN_HTTP_PORT`.

For containers, you can set these variables in the `deployment/default.env`
file.
@Trim Trim merged commit f9f0de0 into linuxfrorg:rails7 Sep 22, 2024
@Trim Trim deleted the configurable-public-port branch September 22, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant