Skip to content

Commit

Permalink
deploy and staging
Browse files Browse the repository at this point in the history
  • Loading branch information
baldarn committed Aug 14, 2024
1 parent efbfd04 commit f3f013e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 5 additions & 10 deletions config/deploy.staging.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
service: open-gas
service: open-gas-dev

image: baldarn/open-gas

servers:
web:
hosts:
- open-gas-dev.farnararo.it
labels:
traefik.http.routers.open_gas.entrypoints: websecure
traefik.http.routers.open_gas.rule: Host(`open-gas-dev.farnararo.it`)
traefik.http.routers.open_gas.tls.certresolver: letsencrypt

registry:
username: baldarn
Expand All @@ -16,13 +20,4 @@ env:
secret:
- RAILS_MASTER_KEY

ssh:
user: baldarn

# Configure custom arguments for Traefik. Be sure to reboot traefik when you modify it.
# traefik:
# args:
# accesslog: true
# accesslog.format: json

asset_path: /rails/public/assets
14 changes: 9 additions & 5 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ servers:
hosts:
- open-gas.farnararo.it
labels:
traefik.http.routers.open_gas.entrypoints: websecure
traefik.http.routers.open_gas.rule: Host(`open-gas.farnararo.it`)
traefik.http.routers.open_gas_secure.entrypoints: websecure
traefik.http.routers.open_gas_secure.rule: Host(`open-gas.farnararo.it`)
traefik.http.routers.open_gas_secure.tls: true
traefik.http.routers.open_gas_secure.tls.certresolver: letsencrypt
traefik.http.routers.open_gas.tls.certresolver: letsencrypt

# Credentials for your image host.
registry:
Expand Down Expand Up @@ -74,12 +72,18 @@ traefik:
options:
publish:
- "443:443"
- "8080:8080"
volume:
- "/letsencrypt/acme.json:/letsencrypt/acme.json"
args:
api.dashboard: true
api.insecure: true
entryPoints.web.address: ":80"
entryPoints.websecure.address: ":443"
certificatesResolvers.letsencrypt.acme.email: "[email protected]"
entryPoints.web.http.redirections.entryPoint.to: websecure
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"
certificatesResolvers.letsencrypt.acme.httpchallenge: true
certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web
Expand Down

0 comments on commit f3f013e

Please sign in to comment.