Skip to content

Instantly share code, notes, and snippets.

View fboukezzoula's full-sized avatar

BOUKEZZOULA Fouzi fboukezzoula

View GitHub Profile
@fboukezzoula
fboukezzoula / agent-server-acl.hcl
Last active March 26, 2023 21:04
consul configuration generated files
## ACL configuration
acl = {
enabled = true
default_policy = "deny"
enable_token_persistence = true
enable_token_replication = true
down_policy = "extend-cache"
}
#!/usr/bin/env bash
WORKDIR="/home/app/"
ASSETS="${WORKDIR}assets/"
# LOGS="${WORKDIR}logs/"
mkdir -p ${ASSETS}
export DATACENTER=${DATACENTER:-"dc1"}
export DOMAIN=${DOMAIN:-"consul"}
@fboukezzoula
fboukezzoula / generate_consul_server_config.sh
Last active March 26, 2023 21:05
Deploy Consul server in an existing environment.
#!/usr/bin/env bash
export DATACENTER=${DATACENTER:-"dc1"}
export DOMAIN=${DOMAIN:-"consul"}
export CONSUL_DATA_DIR=${CONSUL_DATA_DIR:-"/etc/consul/data"}
export CONSUL_CONFIG_DIR=${CONSUL_CONFIG_DIR:-"/etc/consul/config"}
export DNS_RECURSOR=${DNS_RECURSOR:-"1.1.1.1"}
export HTTPS_PORT=${HTTPS_PORT:-"8443"}
export DNS_PORT=${DNS_PORT:-"8600"}