Skip to content

Commit

Permalink
🐛 Modify default BlueSky instance URL fixes #282
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <marcus@fihlon.swiss>
  • Loading branch information
McPringle committed Jan 24, 2025
1 parent 9793f47 commit 87cde5c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,38 +114,38 @@ You can now also attach breakpoints in code for debugging purposes, by clicking

To modify the default configuration values, just specify environment variables with the following names:

| Environment Variable | Default | Description |
|----------------------------|---------------------|------------------------------------------------------------------------------|
| ADMIN_PASSWORD | | The hashed password to get admin access (empty = disabled). |
| BLUESKY_HASHTAGS | | A list of comma separated hashtags for BlueSky posts (empty = disabled). |
| BLUESKY_INSTANCE | public.api.bsky.app | The BlueSky instance used to read the posts from (empty = disabled). |
| BLUESKY_POST_API | [1] | The URL of the BlueSky API to read the posts (empty = disabled). |
| CUSTOM_STYLES | | Inject custom styles into the user interface (see explanations below). |
| DOAG_EVENT_API | [2] | The URL of the DOAG event API to read the conference agenda. |
| DOAG_EVENT_ID | 0 | The ID of the DOAG event to read the conference agenda (0 = disabled). |
| EVENT_DATE_ADJUST | | Adjust the date of the event in days, ISO-8601 formatted (empty = disabled). |
| EVENT_DEMO_ROOM_COUNT | 0 | Number of rooms for the event demo plugin (0 = disabled). |
| EVENT_IMAGE_URL | | The URL of the image to be shown below the event agenda (empty = no image). |
| EVENT_NEXT_SESSION_TIMEOUT | 60 | Number of minutes a session is shown before it starts (0 = disabled). |
| EVENT_SHOW_EMPTY_ROOMS | true | Show (true) or hide (false) empty event rooms. |
| EVENT_SHOW_LEGEND | true | Show (true) or hide (false) the event room legend. |
| EVENT_UPDATE_FREQUENCY | 5 | How often (in minutes) to update event data (0 = disabled). |
| FILTER_LENGTH | 500 | Hide social media posts which exceed this length (0 = disabled). |
| FILTER_REPLIES | true | Hide social media posts which are replies. |
| FILTER_SENSITIVE | true | Hide social media posts which contain sensitive information. |
| FILTER_WORDS | | Hide social media posts which contain these words. |
| JFS_DB_URL | | The URL of the database file for Java Forum Stuttgart. |
| MASTODON_HASHTAGS | | A list of comma separated hashtags for Mastodon posts (empty = disabled). |
| MASTODON_IMAGE_LIMIT | 1 | Limit number of images per post (0 = no limit). |
| MASTODON_IMAGES_ENABLED | true | Enable or disable images in mastodon posts. |
| MASTODON_INSTANCE | | The Mastodon instance used to read the posts from (empty = disabled). |
| SOCIAL_COLUMNS | 3 | How many columns to be used for social media posts. |
| SOCIAL_DEMO_POST_COUNT | 0 | Number of posts for the social demo plugin (0 = disabled). |
| SOCIAL_HEADLINE | | Overwrite the headline for social media posts (empty = don't overwrite). |
| SESSIONIZE_EVENT_API | [3] | The URL of the Sessionize API to read the conference agenda. |
| SESSIONIZE_EVENT_ID | 0 | The ID of the Sessionize event to read the conference agenda (0 = disabled). |
| SESSIONIZE_SPEAKER_API | [4] | The URL of the Sessionize API to read the speaker information. |
| TZ | UTC | The timezone used for date and time calculations. |
| Environment Variable | Default | Description |
|----------------------------|---------------|------------------------------------------------------------------------------|
| ADMIN_PASSWORD | | The hashed password to get admin access (empty = disabled). |
| BLUESKY_HASHTAGS | | A list of comma separated hashtags for BlueSky posts (empty = disabled). |
| BLUESKY_INSTANCE | api.bsky.app | The BlueSky instance used to read the posts from (empty = disabled). |
| BLUESKY_POST_API | [1] | The URL of the BlueSky API to read the posts (empty = disabled). |
| CUSTOM_STYLES | | Inject custom styles into the user interface (see explanations below). |
| DOAG_EVENT_API | [2] | The URL of the DOAG event API to read the conference agenda. |
| DOAG_EVENT_ID | 0 | The ID of the DOAG event to read the conference agenda (0 = disabled). |
| EVENT_DATE_ADJUST | | Adjust the date of the event in days, ISO-8601 formatted (empty = disabled). |
| EVENT_DEMO_ROOM_COUNT | 0 | Number of rooms for the event demo plugin (0 = disabled). |
| EVENT_IMAGE_URL | | The URL of the image to be shown below the event agenda (empty = no image). |
| EVENT_NEXT_SESSION_TIMEOUT | 60 | Number of minutes a session is shown before it starts (0 = disabled). |
| EVENT_SHOW_EMPTY_ROOMS | true | Show (true) or hide (false) empty event rooms. |
| EVENT_SHOW_LEGEND | true | Show (true) or hide (false) the event room legend. |
| EVENT_UPDATE_FREQUENCY | 5 | How often (in minutes) to update event data (0 = disabled). |
| FILTER_LENGTH | 500 | Hide social media posts which exceed this length (0 = disabled). |
| FILTER_REPLIES | true | Hide social media posts which are replies. |
| FILTER_SENSITIVE | true | Hide social media posts which contain sensitive information. |
| FILTER_WORDS | | Hide social media posts which contain these words. |
| JFS_DB_URL | | The URL of the database file for Java Forum Stuttgart. |
| MASTODON_HASHTAGS | | A list of comma separated hashtags for Mastodon posts (empty = disabled). |
| MASTODON_IMAGE_LIMIT | 1 | Limit number of images per post (0 = no limit). |
| MASTODON_IMAGES_ENABLED | true | Enable or disable images in mastodon posts. |
| MASTODON_INSTANCE | | The Mastodon instance used to read the posts from (empty = disabled). |
| SOCIAL_COLUMNS | 3 | How many columns to be used for social media posts. |
| SOCIAL_DEMO_POST_COUNT | 0 | Number of posts for the social demo plugin (0 = disabled). |
| SOCIAL_HEADLINE | | Overwrite the headline for social media posts (empty = don't overwrite). |
| SESSIONIZE_EVENT_API | [3] | The URL of the Sessionize API to read the conference agenda. |
| SESSIONIZE_EVENT_ID | 0 | The ID of the Sessionize event to read the conference agenda (0 = disabled). |
| SESSIONIZE_SPEAKER_API | [4] | The URL of the Sessionize API to read the speaker information. |
| TZ | UTC | The timezone used for date and time calculations. |

The environment variables will override the default values. Some default values might be too long to be displayed in this table. They are marked with a number in square brackets and can be looked up in the following list:

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apus.version=@project.version@

apus.admin.password=${ADMIN_PASSWORD:}
apus.bluesky.hashtags=${BLUESKY_HASHTAGS:}
apus.bluesky.instance=${BLUESKY_INSTANCE:public.api.bsky.app}
apus.bluesky.instance=${BLUESKY_INSTANCE:api.bsky.app}
apus.bluesky.postAPI=${BLUESKY_POST_API:https://%s/xrpc/app.bsky.feed.searchPosts?q=%s}
apus.custom.styles=${CUSTOM_STYLES:}
apus.doag.eventApi=${DOAG_EVENT_API:https://meine.doag.org/api/event/action.getCPEventAgenda/eventId.%d/}
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apus.version=@project.version@

apus.admin.password=$2a$10$nybQbl/iY8SRJkfHJVncS.L5.OC3KJ6VRBYVAID7qnUqwylmn/BtK
apus.bluesky.hashtags=java
apus.bluesky.instance=public.api.bsky.app
apus.bluesky.instance=api.bsky.app
apus.bluesky.postAPI=https://%s/xrpc/app.bsky.feed.searchPosts?q=%s
apus.custom.styles=
apus.doag.eventApi=file:src/test/resources/DOAG.json?eventId=%d
Expand Down

0 comments on commit 87cde5c

Please sign in to comment.