-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Details for different port/address added #3124
base: master
Are you sure you want to change the base?
Changes from 2 commits
b3779c9
d8943bf
18ec98b
4d3eb90
e57ef05
c35f733
bd0e6a5
0e1f62c
42be7ab
8be1996
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,9 @@ SQLALCHEMY_TIMESCALE_URI = "postgresql://listenbrainz_ts:listenbrainz_ts@lb_db/l | |
TIMESCALE_ADMIN_URI = "postgresql://postgres:postgres@lb_db/postgres" | ||
TIMESCALE_ADMIN_LB_URI = "postgresql://postgres:postgres@lb_db/listenbrainz_ts" | ||
|
||
# Server address | ||
SERVER_NAME = "localhost:8100" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain why setting this SERVER_NAME is required? As mentioned in my previous comment, this could potentially use the value of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In situations where generating absolute external URLs is required, such as during OAuth redirection, Flask relies on the While You can refer to the attached Flask Documentation. |
||
|
||
# MetaBrainz - used for retrieving donation info from metabrainz.org | ||
SQLALCHEMY_METABRAINZ_URI = "" | ||
|
||
|
@@ -211,4 +214,4 @@ REJECT_LISTENS_WITHOUT_USER_EMAIL = False | |
REJECT_NEW_USERS_WITHOUT_EMAIL = False | ||
|
||
# base directory for user data exports | ||
USER_DATA_EXPORT_BASE_DIR = "/code/listenbrainz/exports/" | ||
USER_DATA_EXPORT_BASE_DIR = "/code/listenbrainz/exports/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline deleted automatically? You might need to adjust your code editor settings to not remove them automatically. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will look into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are potentially quite a few more configuration lines that would need to be modified, so I wonder if a more generic advice such as "search for
8100
in the config file and replace it with the port you want to use" or something along those lines would be more suited and more future-proof.For example, API_URL, SPOTIFY_CALLBACK_URL and other callback URLs use the port number.
Alternatively, you could modify the sample config again to replace
localhost:8100
withSERVER_ROOT_URL
in an f-string like we do forMUSICBRAINZ_BASE_URL
:listenbrainz-server/listenbrainz/config.py.sample
Line 85 in 82e3eb6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the necessary changes by using a f-string format.