+8
.containerignore
+8
.containerignore
+8
Containerfile
+8
Containerfile
+4
-5
app/src/main/kotlin/Application.kt
+4
-5
app/src/main/kotlin/Application.kt
···
29
29
const val FEED_RECORD_KEY = "darkfeed"
30
30
31
31
fun main() {
32
-
// TODO: Move this to an env file!
33
-
val hostname = ""
34
-
val ownerPds = ""
35
-
val ownerDid = ""
36
-
val ownerAppPassword = ""
32
+
val ownerPds = System.getenv("DF_OWNER_PDS")
33
+
val ownerDid = System.getenv("DF_OWNER_DID")
34
+
val ownerAppPassword = System.getenv("DF_OWNER_PASSWORD")
35
+
val hostname = System.getenv("DF_HOSTNAME")
37
36
38
37
val api = BskyApi(
39
38
pdsUrl = buildUrl {
+27
fly.toml
+27
fly.toml
···
1
+
# fly.toml app configuration file generated for darkfeed on 2024-11-05T20:07:05-05:00
2
+
#
3
+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
+
#
5
+
6
+
app = 'darkfeed'
7
+
primary_region = 'iad'
8
+
9
+
[build]
10
+
dockerfile = 'Containerfile'
11
+
ignorefile = '.containerignore'
12
+
13
+
[http_service]
14
+
internal_port = 8080
15
+
force_https = true
16
+
auto_stop_machines = 'stop'
17
+
auto_start_machines = true
18
+
min_machines_running = 0
19
+
processes = ['app']
20
+
21
+
[[vm]]
22
+
size = 'shared-cpu-1x'
23
+
24
+
[env]
25
+
DF_OWNER_PDS = 'bsky.social'
26
+
DF_OWNER_DID = 'did:plc:zhxv5pxpmojhnvaqy4mwailv'
27
+
DF_HOSTNAME = 'darkfeed.fly.dev'