-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the server is now actually production ready. we generate tls certificates if the ones in the database are going to expire within 30 days, and then store them in the database. still a bit precarious sinc ethis isn't really atomic, but eh
- Loading branch information
Showing
5 changed files
with
87 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,38 @@ | ||
# fly.toml app configuration file generated for encrypted-file-server-spring-surf-6898 on 2024-02-15T10:44:17-05:00 | ||
# fly.toml app configuration file generated for encrypted-file-server on 2024-04-23T15:32:04-04:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'encrypted-file-server' | ||
app = 'big-file-server' | ||
primary_region = 'ord' | ||
|
||
[deploy] | ||
release_command = 'sqlx migrate run' | ||
|
||
[env] | ||
RUST_BACKTRACE = '1' | ||
TOKEN_PUBLIC_KEY = 'd27fb9c11d7608f86aa9e90a00133d58688b2fe4e7903a35199a25f7e905f658' | ||
|
||
[http_service] | ||
internal_port = 80 | ||
|
||
[[services]] | ||
protocol = "udp" | ||
protocol = 'udp' | ||
internal_port = 9999 | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 1 | ||
min_machines_running = 0 | ||
processes = ['app'] | ||
|
||
[[services.ports]] | ||
port = 9999 | ||
|
||
[http_service] | ||
internal_port = 80 | ||
force_https = false | ||
|
||
[env] | ||
RUST_BACKTRACE="1" | ||
TOKEN_PUBLIC_KEY="d27fb9c11d7608f86aa9e90a00133d58688b2fe4e7903a35199a25f7e905f658" | ||
[[restart]] | ||
policy = "never" | ||
retries = 10 | ||
processes = ["app"] | ||
|
||
[[vm]] | ||
memory = '1gb' | ||
cpu_kind = 'shared' | ||
cpus = 1 | ||
memory_mb = 1024 |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE tls_certs( | ||
id SERIAL PRIMARY KEY, | ||
cert_chain_pem TEXT NOT NULL, | ||
private_key_pem TEXT NOT NULL, | ||
expires_at TIMESTAMP NOT NULL | ||
) |
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