-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.sample.yaml
More file actions
114 lines (87 loc) · 3.99 KB
/
config.sample.yaml
File metadata and controls
114 lines (87 loc) · 3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# The CDN_URL is the URL send to clients to access images from this server.
# Set it to where the server can be accessed from your device.
# You can test this by going to the CDN_URL in your device web browser and
# seeing if it loads
# DO NOT ADD A TRAILING SLASH
# GOOD http://127.0.0.1:3000
# BAD: http://127.0.0.1:3000/
CDN_URL: 'http://127.0.0.1:3000'
# The URL that will be displayed in the text
# This is the URL that will be displayed in the text of the tweet
# This is not the link seen by the viewer, not where it will actually go to.
# You can also set it to nothing if you don't want a URL to be displayed.
# This does break older clients, and has a useless URL area in the tweet.
# {shortblob} is the last few letters of the bluesky cdn blob
# {fullblob} is the full bluesky blob
# {user_did} is the image owner's DID
IMG_DISPLAY_TEXT: 'pic.twitter.com/{shortcode}'
# Now this link is where it actually will go to (sometimes), although this is not displayed to the user*
# IMG_URL_TEXT: 'http://127.0.0.1:3000/cdn/img/bsky/{user_did}/{fullblob}.jpg' # if you don't want to do any redirects, it will eventually arrive here.
IMG_URL_TEXT: 'http://127.0.0.1:3000/img/{shortcode}' # if you want to do a redirect, and have it be short, it should arrive here.
# Same as the above, but for videos
VID_DISPLAY_TEXT: 'pic.twitter.com/{shortcode}'
# Same as the above (again), but for videos
VID_URL_TEXT: 'http://127.0.0.1:3000/img/{shortcode}' # even though it says images, this handles videos too.
# For gifs (from tenor), you only have shortcode for this one (due to my lazyness)
GIF_DISPLAY_TEXT: 'pic.twitter.com/{shortcode}'
GIF_URL_TEXT: 'http://127.0.0.1:3000/img/{shortcode}'
# SERVER_PORT is the port the server will listen on.
SERVER_PORT: 3000
# This database stores:
# Analytics (if enabled)
# User DID, PDS, session UUID and tokens (tokens are encrypted with key contained in oauth header provided by clients)
# Bluesky contexts
# Database Type (sqlite, mysql, postgres)
DATABASE_TYPE: 'sqlite'
# Database Path/DSN (see https://gorm.io/docs/connecting_to_the_database.html)
DATABASE_PATH: './db/twitterbridge.db'
# TRACK_ANALYTICS toggles whether analytics should be tracked and stored in the database
# This tracks (anonomized):
# Twitter version used to connect
# Useragent of the client
# How many people have logged on
# How many tweets have been sent to bluesky
# How many tweets have been sent to clients
# IP address (for country location data)
# Language
# more probably to come
TRACK_ANALYTICS: true
# Enable this if behind a reverse proxy
USE_X_FORWARDED_FOR: false
####################################
# Auth Info #
####################################
# JWT Token Secret
# This is used to sign the JWT tokens used for user sessions.
# It should be a random string.
# DO NOT SHARE WHATEVER YOU PUT HERE
# It must be at least 32 characters long, but longer = better security
SECRET_KEY: ''
# This controls whether to accept the older token format.
# If this a new server, keep it at default.
# If you want to keep old users signed in, set it to 1.
MIN_TOKEN_VERSION: 2
# Server Identifer
# This is used to identify which server granted which token to the client
# It really can be anything, but it should be unique to your server.
# Example:
# SERVER_IDENTIFIER: 'examplebridge'
SERVER_IDENTIFIER: ''
# Server URLs
# These are the URLs that the server can be accessed from.
# These are put into the JWT token for lookup.
SERVER_URLS:
- 'http://example.com'
- 'https://example.com'
# DEVELOPER_MODE
# This is used to enable some extra logging useful during development.
# DO NOT ENABLE THIS IN A PUBLIC INSTANCE!!!
DEVELOPER_MODE: false
####################################
# Push Notifications #
####################################
# This is the skyglow notification server that this will share notifications thru
NOTIFICATION_TRUSTED_SERVER: ''
# This is used for getting removed push tokens from people who uninstalled the app.
# Hex, max value is 256 bytes
NOTIFICATION_FEEDBACK_SECRET: ''