Skip to content

Commit

Permalink
created flyio configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
alxkp committed Nov 7, 2023
1 parent b2a5037 commit e2631ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions backend/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ primary_region = "ewr"
# DOMAINS = "clubs-backend.internal,penn-clubs-frontend.internal,penn-clubs-frontend.fly.dev"
DOMAINS = "*"

# [http_service]
# internal_port = 80
# force_https = true
# auto_stop_machines = false
# auto_start_machines = true
# min_machines_running = 1
[http_service]
internal_port = 80
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
7 changes: 4 additions & 3 deletions frontend/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
app = "penn-clubs-frontend"
primary_region = "ewr"

# [build]
# image = "pennlabs/penn-clubs-frontend:latest"
[build]
image = "pennlabs/penn-clubs-frontend:latest"

[env]
DOMAIN = "clubs-backend.internal:80"
# DOMAIN = "clubs-backend.internal:80"
DOMAIN = "clubs-backend.fly.dev"

[http_service]
internal_port = 3000
Expand Down
2 changes: 1 addition & 1 deletion frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
SITE_ORIGIN: process.env.DOMAIN
? process.env.DOMAIN.startsWith('http')
? process.env.DOMAIN
: `http://${process.env.DOMAIN}`
: `https://${process.env.DOMAIN}`
: `http://localhost:${process.env.PORT || 3000}`,
NEXT_PUBLIC_SITE_NAME: process.env.NEXT_PUBLIC_SITE_NAME || 'clubs',
SENTRY_URL: process.env.SENTRY_URL,
Expand Down

0 comments on commit e2631ed

Please sign in to comment.