mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
@@ -164,6 +164,9 @@ ATOM_DB_PASSWORD=atom
|
||||
ATOM_DB_NAME=atom
|
||||
ATOM_JWT_SECRET=change-me-in-production
|
||||
ATOM_JWT_EXPIRY_SECS=3600
|
||||
ATOM_KEY_ENCRYPTION_KEY=6uQzr7tCp9cupO8anzo0i6XtfVocixzIK78lB4o6S3E=
|
||||
ATOM_KEY_ENCRYPTION_KEY_ID=local:v1
|
||||
ATOM_ALLOW_PLAINTEXT_SIGNING_KEYS=false
|
||||
ATOM_ADMIN_SECRET=12345678
|
||||
ATOM_MIN_PASSWORD_CHARS=8
|
||||
ATOM_CERTS_ENABLED=true
|
||||
|
||||
@@ -81,6 +81,9 @@ services:
|
||||
ATOM_SMTP_FROM: ${ATOM_SMTP_FROM}
|
||||
ATOM_SMTP_TLS: ${ATOM_SMTP_TLS}
|
||||
ADMIN_SECRET: ${ATOM_ADMIN_SECRET}
|
||||
ATOM_KEY_ENCRYPTION_KEY: ${ATOM_KEY_ENCRYPTION_KEY}
|
||||
ATOM_KEY_ENCRYPTION_KEY_ID: ${ATOM_KEY_ENCRYPTION_KEY_ID:-local:v1}
|
||||
ATOM_ALLOW_PLAINTEXT_SIGNING_KEYS: ${ATOM_ALLOW_PLAINTEXT_SIGNING_KEYS:-false}
|
||||
ATOM_SERVICE_SECRET: ${ATOM_SERVICE_SECRET}
|
||||
ATOM_CERTS_ENABLED: ${ATOM_CERTS_ENABLED:-true}
|
||||
ATOM_CERTS_CA_MODE: ${ATOM_CERTS_CA_MODE:-file_root_issuer}
|
||||
|
||||
@@ -108,6 +108,13 @@ http {
|
||||
proxy_pass http://$atom_upstream;
|
||||
}
|
||||
|
||||
# Proxy pass to Atom public certificate endpoints
|
||||
location ^~ /certs/ {
|
||||
include snippets/proxy-headers.conf;
|
||||
add_header Access-Control-Expose-Headers Location;
|
||||
proxy_pass http://$atom_upstream;
|
||||
}
|
||||
|
||||
# Proxy pass to rule engine service
|
||||
location ~ "^/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})/(rules)" {
|
||||
include snippets/proxy-headers.conf;
|
||||
|
||||
@@ -117,6 +117,13 @@ http {
|
||||
proxy_pass http://$atom_upstream;
|
||||
}
|
||||
|
||||
# Proxy pass to Atom public certificate endpoints
|
||||
location ^~ /certs/ {
|
||||
include snippets/proxy-headers.conf;
|
||||
add_header Access-Control-Expose-Headers Location;
|
||||
proxy_pass http://$atom_upstream;
|
||||
}
|
||||
|
||||
# Proxy pass to rule engine service
|
||||
location ~ "^/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})/(rules)" {
|
||||
include snippets/proxy-headers.conf;
|
||||
|
||||
Reference in New Issue
Block a user