This commit is contained in:
@@ -42,7 +42,7 @@ config :cors_plug,
|
|||||||
|
|
||||||
# Zitadel Configuration
|
# Zitadel Configuration
|
||||||
config :policy_service, :zitadel,
|
config :policy_service, :zitadel,
|
||||||
issuer: System.get_env("ZITADEL_ISSUER"),
|
issuer: System.get_env("ZITADEL_ISSUER", "https://id.corredorconnect.com"),
|
||||||
client_id: System.get_env("ZITADEL_CLIENT_ID"),
|
client_id: System.get_env("ZITADEL_CLIENT_ID"),
|
||||||
client_secret: System.get_env("ZITADEL_CLIENT_SECRET"),
|
client_secret: System.get_env("ZITADEL_CLIENT_SECRET"),
|
||||||
required_scopes: [
|
required_scopes: [
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
};
|
};
|
||||||
dockerImage = pkgs.dockerTools.buildLayeredImage {
|
dockerImage = pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "policy_service";
|
name = "policy_service";
|
||||||
contents = [ package pkgs.bashInteractive pkgs.busybox pkgs.shadow ];
|
contents = [ package pkgs.bashInteractive pkgs.busybox pkgs.shadow pkgs.cacert ];
|
||||||
config = {
|
config = {
|
||||||
Cmd = [ "${package}/bin/policy_service" "start" ];
|
Cmd = [ "${package}/bin/policy_service" "start" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ defmodule PolicyService.Application do
|
|||||||
PolicyService.Repo,
|
PolicyService.Repo,
|
||||||
{DNSCluster, query: Application.get_env(:policy_service, :dns_cluster_query) || :ignore},
|
{DNSCluster, query: Application.get_env(:policy_service, :dns_cluster_query) || :ignore},
|
||||||
{Phoenix.PubSub, name: PolicyService.PubSub, pool_size: 1},
|
{Phoenix.PubSub, name: PolicyService.PubSub, pool_size: 1},
|
||||||
# {Oidcc.ProviderConfiguration.Worker,
|
{Oidcc.ProviderConfiguration.Worker,
|
||||||
# %{
|
%{
|
||||||
# issuer: Keyword.get(zitadel_config, :issuer),
|
issuer: Keyword.get(zitadel_config, :issuer),
|
||||||
# name: PolicyService.ZitadelProvider
|
name: PolicyService.ZitadelProvider
|
||||||
# }},
|
}},
|
||||||
PolicyServiceWeb.Endpoint
|
PolicyServiceWeb.Endpoint
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user