-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1745 from iotaledger/develop
Merge latest develop changes into master
- Loading branch information
Showing
62 changed files
with
2,416 additions
and
10,730 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
name: Release | ||
name: Release & Devnet deploy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
|
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
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
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 |
---|---|---|
|
@@ -59,3 +59,7 @@ | |
- hosts: asset_registries | ||
roles: | ||
- asset-registry | ||
|
||
- hosts: lbs | ||
roles: | ||
- lb |
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
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,33 @@ | ||
version: '3' | ||
|
||
networks: | ||
default: | ||
name: web | ||
|
||
services: | ||
reverse-proxy: | ||
image: traefik:v2.4 | ||
restart: always | ||
container_name: traefik | ||
command: | ||
- "--log.level=DEBUG" | ||
- "--accesslog=false" | ||
- "--providers.docker" | ||
- "--providers.docker.exposedbydefault=false" | ||
- "--providers.file.directory=/opt/config" | ||
- "--providers.file.watch=true" | ||
- "--entrypoints.web.address=:80" | ||
- "--entrypoints.websecure.address=:443" | ||
- "--certificatesresolvers.devops.acme.tlschallenge=true" | ||
- "[email protected]" | ||
- "--certificatesresolvers.devops.acme.storage=/letsencrypt/acme.json" | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
volumes: | ||
# So that Traefik can listen to the Docker events | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- ./config:/opt/config | ||
- ./letsencrypt/:/letsencrypt | ||
labels: | ||
- "traefik.enable=true" |
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,40 @@ | ||
- name: Create traefik directory | ||
file: | ||
path: /opt/traefik | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: Create config directory | ||
file: | ||
path: /opt/traefik/config | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: Create letsencrypt directory | ||
file: | ||
path: /opt/traefik/letsencrypt | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: Template asset-registry configuration | ||
template: | ||
src: asset-registry.yml.j2 | ||
dest: /opt/traefik/config/asset-registry.yml | ||
mode: '0644' | ||
|
||
- name: Template nodes configuration | ||
template: | ||
src: nodes.yml.j2 | ||
dest: /opt/traefik/config/nodes.yml | ||
mode: '0644' | ||
|
||
- name: Template docker-compose.yml | ||
copy: | ||
src: docker-compose.yml | ||
dest: /opt/traefik/docker-compose.yml | ||
mode: '0644' | ||
|
||
- name: Run traefik | ||
community.general.docker_compose: | ||
project_src: /opt/traefik | ||
register: output |
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,29 @@ | ||
#jinja2: trim_blocks:True, lstrip_blocks:True | ||
http: | ||
routers: | ||
asset-registry-router: | ||
rule: "Host(`asset-registry.tokenizedassetsdemo.iota.cafe`) || Host(`asset-registry.nectar.iota.cafe`)" | ||
service: "asset-registry" | ||
entryPoints: | ||
- "web" | ||
asset-registry-router-secure: | ||
rule: "Host(`asset-registry.tokenizedassetsdemo.iota.cafe`) || Host(`asset-registry.nectar.iota.cafe`)" | ||
service: "asset-registry" | ||
entryPoints: | ||
- "websecure" | ||
tls: | ||
certResolver: devops | ||
services: | ||
asset-registry: | ||
loadBalancer: | ||
servers: | ||
{% for host in groups['asset_registries'] %} | ||
- url: "http://{{ host }}:80" | ||
{% endfor %} | ||
passHostHeader: false | ||
sticky: | ||
cookie: {} | ||
healthCheck: | ||
path: / | ||
interval: "10s" | ||
timeout: "3s" |
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,54 @@ | ||
#jinja2: trim_blocks:True, lstrip_blocks:True | ||
http: | ||
routers: | ||
nodes-router: | ||
rule: "Host(`nodes.tokenizedassetsdemo.iota.cafe`) || Host(`nodes.nectar.iota.cafe`)" | ||
service: "nodes" | ||
entryPoints: | ||
- "web" | ||
nodes-router-secure: | ||
rule: "Host(`nodes.tokenizedassetsdemo.iota.cafe`) || Host(`nodes.nectar.iota.cafe`)" | ||
service: "nodes" | ||
entryPoints: | ||
- "websecure" | ||
tls: | ||
certResolver: devops | ||
dashboards-router: | ||
rule: "Host(`dashboards.tokenizedassetsdemo.iota.cafe`) || Host(`dashboards.nectar.iota.cafe`)" | ||
service: "dashboards" | ||
entryPoints: | ||
- "web" | ||
dashboards-router-secure: | ||
rule: "Host(`dashboards.tokenizedassetsdemo.iota.cafe`) || Host(`dashboards.nectar.iota.cafe`)" | ||
service: "dashboards" | ||
entryPoints: | ||
- "websecure" | ||
tls: | ||
certResolver: devops | ||
services: | ||
nodes: | ||
loadBalancer: | ||
servers: | ||
{% for host in groups['public_nodes'] %} | ||
- url: "http://{{ host }}:8080" | ||
{% endfor %} | ||
passHostHeader: false | ||
sticky: | ||
cookie: {} | ||
healthCheck: | ||
path: /healthz | ||
interval: "10s" | ||
timeout: "3s" | ||
dashboards: | ||
loadBalancer: | ||
servers: | ||
{% for host in groups['public_nodes'] %} | ||
- url: "http://{{ host }}:8081" | ||
{% endfor %} | ||
passHostHeader: false | ||
sticky: | ||
cookie: {} | ||
healthCheck: | ||
path: / | ||
interval: "10s" | ||
timeout: "3s" |
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 |
---|---|---|
|
@@ -18,3 +18,5 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
local-wiki |
Oops, something went wrong.