-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Changed the way settings were handled in preparation for more. Now they check if encrypted and auto use the encrypted function if so. This will make it so that most settings can be added without needing a new section in the settings widget. - Added Setting Display Names & Setting Type Definitions. use the `display_name_` prefix in settings to set the display name for a setting. Use the `hidden_` prefix to create a hidden input. Display Name definition can be anywhere before the setting value. - Fixed bug where s3 settings couldn't be updated. - Updated Guide to show new encrypted setting access process. - Lots of cleanup - Added initial variable for global mention IDs & Mention Tag start/ends.
- Loading branch information
Showing
5 changed files
with
219 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,100 @@ | ||
########## APPLICATION | ||
##### | ||
[accounts] | ||
## Display Names | ||
display_name_media_accounts = Media Accounts | ||
display_name_supported_media_platforms = Supported Platforms | ||
display_name_hidden_s3_access = Access | ||
display_name_hidden_s3_secret = Secret | ||
display_name_hidden_s3_endpoint = Endpoint | ||
display_name_hidden_s3_bucket = Bucket | ||
|
||
## Values | ||
media_accounts = None | ||
supported_media_platforms = Discord,Twitter,Reddit,Facebook,Instagram,Telegram,Signal,RSS | ||
s3_access = None | ||
s3_secret = None | ||
s3_endpoint = None | ||
s3_bucket = None | ||
hidden_s3_access = None | ||
hidden_s3_secret = None | ||
hidden_s3_endpoint = None | ||
hidden_s3_bucket = None | ||
|
||
[posting] | ||
## Display Names | ||
display_name_local_mention_tag_start = Local Mention Tag Start | ||
display_name_local_mention_tag_end = Local Mention Tag End | ||
display_name_global_mention_ids = Global Mention IDs | ||
display_name_utc_timezones = UTC Timezones | ||
display_name_default_timezone = Default Timezone | ||
|
||
## Values | ||
local_mention_tag_start = None | ||
local_mention_tag_end = None | ||
global_mention_ids = None | ||
utc_timezones = +1400,+1300,+1200,+1100,+1000,+0900,+0800,+0700,+0600,+0500,+0400,+0300,+0200,+0100,+0000,-0100,-0200,-0300,-0400,-0500,-0600,-0700,-0800,-0900,-1000,-1100,-1200 | ||
default_timezone = +0000 | ||
|
||
[encryption] | ||
key_location = /path/to/key.pem | ||
## Display Names | ||
display_name_hidden_key_location = Key Location | ||
display_name_block_size = Block Size | ||
|
||
## Values | ||
hidden_key_location = /path/to/key.pem | ||
block_size = None | ||
|
||
[app] | ||
## Display Names | ||
display_name_no_posts_title = Warning | Title - No Posts Found | ||
display_name_no_posts_description = Warning | Description - No Posts Found | ||
display_name_post_not_scheduled_for_reason_time_in_past = Warning | Attempt to Schedule Post in the Past | ||
display_name_value_redaction_message = Info | Hidden Value Redacted Message | ||
|
||
## Values | ||
no_posts_title = No Pending Posts | ||
no_posts_description = No posts here yet! | ||
post_not_scheduled_for_reason_time_in_past = WARNING. Your post could not be scheduled. Please pick a date in the future above. | ||
value_redaction_message = REDACTED | ||
|
||
[storage] | ||
## Display Names | ||
display_name_posts_file = Posts File Name | ||
display_name_scheduled_posts_file = Scheduled Posts File Name | ||
display_name_uploaded_media_dir = Uploaded Media Directory | ||
|
||
## Values | ||
posts_file = published_posts.dat | ||
scheduled_posts_file = scheduled_posts.dat | ||
uploaded_media_dir = uploaded_media | ||
|
||
[media] | ||
## Display Names | ||
display_name_supported_image_types = Supported Image Types | ||
display_name_supported_video_types = Supported Video Types | ||
display_name_supported_audio_types = Supported Audio Types | ||
|
||
## Values | ||
supported_image_types = jpg,jpeg,png,gif | ||
supported_video_types = mp4,mov,avi,wmv,flv,mpg,mpeg | ||
supported_audio_types = mp3,wav,ogg | ||
|
||
[performance] | ||
## Display Names | ||
display_name_posts_cache_time = Posts Cache Time | ||
display_name_page_cache_time = Page Cache time | ||
|
||
## Values | ||
posts_cache_time = 3600 | ||
page_cache_time = 3600 | ||
|
||
# Server settings need to be set on the device running the server. Changing them here will not affect the server unless you're running it locally. | ||
|
||
########## SERVER | ||
##### | ||
|
||
## Server settings need to be set on the device running the server. | ||
## Changing them here will not affect the server unless you're running it locally. | ||
|
||
[server] | ||
## Display Names | ||
display_name_processing_delay_in_seconds = Processing Delay in Seconds | ||
|
||
## Values | ||
processing_delay_in_seconds = 60 |
Oops, something went wrong.