Skip to content

Deploy naar Productie

Inventory (voorbeeld)

inventory/production/hosts.yml

yaml
all:
  children:
    frontend:
      hosts:
        prod-frontend.example.com:
    api:
      hosts:
        prod-api.example.com:
    production:
      children:
        frontend:
        api:

inventory/production/group_vars/all.yml

yaml
proxy_enable_https: true
proxy_ssl_cert: '/etc/ssl/certs/wildfire.ugent.be.crt'
proxy_ssl_key: '/etc/ssl/private/wildfire.ugent.be.key'

proxy_api_enable: true
proxy_api_prefix: '/api/v1/'
proxy_api_upstream: 'http://wfbackend.ugent.be:3000'
proxy_api_enable_cors: false
proxy_api_cors_allow_origin: 'https://wildfire.ugent.be'

inventory/production/group_vars/frontend.yml

yaml
proxy_server_name: 'wildfire.ugent.be'
proxy_backends:
  - path: '/'
    upstream: 'http://127.0.0.1:3001/'
  - path: '/admin/'
    upstream: 'http://127.0.0.1:3002/'

inventory/production/group_vars/api.yml

yaml
proxy_server_name: 'wfbackend.ugent.be'
proxy_backends:
  - path: '/'
    upstream: 'http://127.0.0.1:3000/'
proxy_api_enable: false

Deploy

bash
ansible-playbook full.yml -i inventory/production/

Fire Management System Documentation