-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a51583
commit 752c204
Showing
6 changed files
with
47 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
KAMAL_REGISTRY_PASSWORD= |
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,17 @@ | ||
# Secrets defined here are available for reference under registry/password, env/secret, builder/secrets, | ||
# and accessories/*/env/secret in config/deploy.yml. All secrets should be pulled from either | ||
# password manager, ENV, or a file. DO NOT ENTER RAW CREDENTIALS HERE! This file needs to be safe for git. | ||
|
||
# Option 1: Read secrets from the environment | ||
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD | ||
|
||
# Option 2: Read secrets via a command | ||
RAILS_MASTER_KEY=$(cat demo/config/master.key) | ||
|
||
# Option 3: Read secrets via kamal secrets helpers | ||
# These will handle logging in and fetching the secrets in as few calls as possible | ||
# There are adapters for 1Password, LastPass + Bitwarden | ||
# | ||
# SECRETS=$(kamal secrets fetch --adapter 1password --account my-account --from MyVault/MyItem KAMAL_REGISTRY_PASSWORD RAILS_MASTER_KEY) | ||
# KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD $SECRETS) | ||
# RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY $SECRETS) |
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,37 +1,19 @@ | ||
<% require "dotenv"; Dotenv.load(".env") %> | ||
|
||
service: polaris_view_components | ||
image: kirillplatonov/polaris_view_components | ||
|
||
servers: | ||
- 195.201.128.126 | ||
proxy: | ||
app_port: 3000 | ||
ssl: true | ||
host: polarisviewcomponents.org | ||
registry: | ||
username: kirillplatonov | ||
password: | ||
- KAMAL_REGISTRY_PASSWORD | ||
|
||
builder: | ||
arch: amd64 | ||
env: | ||
secret: | ||
- RAILS_MASTER_KEY | ||
|
||
servers: | ||
web: | ||
hosts: | ||
- 195.201.128.126 | ||
labels: | ||
traefik.http.routers.polaris_view_components.entrypoints: websecure | ||
traefik.http.routers.polaris_view_components.rule: "Host(`polarisviewcomponents.org`) || Host(`www.polarisviewcomponents.org`)" | ||
traefik.http.routers.polaris_view_components.tls.certresolver: letsencrypt | ||
|
||
traefik: | ||
options: | ||
publish: | ||
- "443:443" | ||
volume: | ||
- "/letsencrypt/acme.json:/letsencrypt/acme.json" | ||
args: | ||
entryPoints.web.address: ":80" | ||
entryPoints.websecure.address: ":443" | ||
entryPoints.web.http.redirections.entryPoint.to: websecure # We want to force https | ||
entryPoints.web.http.redirections.entryPoint.scheme: https | ||
entryPoints.web.http.redirections.entrypoint.permanent: true | ||
certificatesResolvers.letsencrypt.acme.email: "[email protected]" | ||
certificatesResolvers.letsencrypt.acme.storage: "/letsencrypt/acme.json" # Must match the path in `volume` | ||
certificatesResolvers.letsencrypt.acme.httpchallenge: true | ||
certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web |
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