Skip to content

Commit c1a317b

Browse files
authored
ops: production environment (#72)
1 parent d2c5d93 commit c1a317b

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

config/prod.exs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Config
66
# which you should run after static files are built and
77
# before starting your production server.
88
config :cesium_link, CesiumLinkWeb.Endpoint,
9+
url: [scheme: "https", host: "cesium.link", port: 443],
10+
force_ssl: [rewrite_on: [:x_forwarded_proto]],
911
cache_static_manifest: "priv/static/cache_manifest.json"
1012

1113
# Do not print debug messages in production

fly-prod.toml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
app = "cesium-link-prod"
2+
primary_region = "mad"
3+
kill_signal = "SIGTERM"
4+
5+
[deploy]
6+
release_command = "/app/bin/migrate"
7+
8+
[env]
9+
MIX_ENV = "prod"
10+
PHX_HOST = "cesium.link"
11+
PORT = "8080"
12+
13+
[http_service]
14+
internal_port = 8080
15+
force_https = true
16+
auto_stop_machines = false
17+
auto_start_machines = true
18+
min_machines_running = 0
19+
processes = ["app"]
20+
21+
[http_service.concurrency]
22+
type = "connections"
23+
hard_limit = 1000
24+
soft_limit = 1000
25+
26+
[[vm]]
27+
memory = "512mb"
28+
cpu_kind = "shared"
29+
cpus = 1

0 commit comments

Comments
 (0)