neiam
/diogramos
diogramos
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
oops.
d9879e9 · gmorell · 2026-05-04 03:55
Files changed
modified
config/runtime.exs
+21
−21
@@ -12,15 +12,15 @@ import Config
| 12 | 12 | # If you use `mix release`, you need to explicitly enable the server |
| 13 | 13 | # by passing the PHX_SERVER=true when you start it: |
| 14 | 14 | # |
| 15 | −# PHX_SERVER=true bin/muddle start | |
| 15 | +# PHX_SERVER=true bin/diogramos start | |
| 16 | 16 | # |
| 17 | 17 | # Alternatively, you can use `mix phx.gen.release` to generate a `bin/server` |
| 18 | 18 | # script that automatically sets the env var above. |
| 19 | 19 | if System.get_env("PHX_SERVER") do |
| 20 | − config :muddle, MuddleWeb.Endpoint, server: true | |
| 20 | + config :diogramos, DiogramosWeb.Endpoint, server: true | |
| 21 | 21 | end |
| 22 | 22 | |
| 23 | −config :muddle, MuddleWeb.Endpoint, | |
| 23 | +config :diogramos, DiogramosWeb.Endpoint, | |
| 24 | 24 | http: [port: String.to_integer(System.get_env("PORT", "4000"))] |
| 25 | 25 | |
| 26 | 26 | if config_env() == :prod do |
@@ -33,7 +33,7 @@ if config_env() == :prod do
| 33 | 33 | # DATABASE_URL when those aren't present. |
| 34 | 34 | cond do |
| 35 | 35 | System.get_env("POSTGRES_HOST") -> |
| 36 | − config :muddle, Muddle.Repo, | |
| 36 | + config :diogramos, Diogramos.Repo, | |
| 37 | 37 | hostname: System.get_env("POSTGRES_HOST"), |
| 38 | 38 | port: String.to_integer(System.get_env("POSTGRES_PORT") || "5432"), |
| 39 | 39 | username: |
@@ -42,12 +42,12 @@ if config_env() == :prod do
| 42 | 42 | password: |
| 43 | 43 | System.get_env("POSTGRES_PASSWORD") || |
| 44 | 44 | raise("POSTGRES_PASSWORD is required when POSTGRES_HOST is set"), |
| 45 | − database: System.get_env("POSTGRES_DB") || "muddle", | |
| 45 | + database: System.get_env("POSTGRES_DB") || "diogramos", | |
| 46 | 46 | pool_size: pool_size, |
| 47 | 47 | socket_options: maybe_ipv6 |
| 48 | 48 | |
| 49 | 49 | System.get_env("DATABASE_URL") -> |
| 50 | − config :muddle, Muddle.Repo, | |
| 50 | + config :diogramos, Diogramos.Repo, | |
| 51 | 51 | url: System.get_env("DATABASE_URL"), |
| 52 | 52 | pool_size: pool_size, |
| 53 | 53 | socket_options: maybe_ipv6 |
@@ -74,23 +74,23 @@ if config_env() == :prod do
| 74 | 74 | |
| 75 | 75 | host = System.get_env("PHX_HOST") || "example.com" |
| 76 | 76 | |
| 77 | − config :muddle, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") | |
| 77 | + config :diogramos, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") | |
| 78 | 78 | |
| 79 | 79 | # libcluster — Kubernetes endpoints lookup against the headless |
| 80 | 80 | # service we deploy alongside the app. RBAC (pods + endpoints) is |
| 81 | − # granted to the `muddle` ServiceAccount in app.yml. | |
| 81 | + # granted to the `diogramos` ServiceAccount in app.yml. | |
| 82 | 82 | config :libcluster, |
| 83 | 83 | topologies: [ |
| 84 | − muddle: [ | |
| 84 | + diogramos: [ | |
| 85 | 85 | strategy: Cluster.Strategy.Kubernetes, |
| 86 | 86 | config: [ |
| 87 | 87 | mode: :ip, |
| 88 | 88 | # Both keys are required by libcluster 3.5 even in :endpoints |
| 89 | 89 | # lookup mode — it filters endpoints by selector. |
| 90 | − kubernetes_selector: "name=muddle", | |
| 91 | − kubernetes_service_name: "muddle-headless", | |
| 92 | − kubernetes_node_basename: "muddle", | |
| 93 | − kubernetes_namespace: "muddle", | |
| 90 | + kubernetes_selector: "name=diogramos", | |
| 91 | + kubernetes_service_name: "diogramos-headless", | |
| 92 | + kubernetes_node_basename: "diogramos", | |
| 93 | + kubernetes_namespace: "diogramos", | |
| 94 | 94 | polling_interval: 10_000 |
| 95 | 95 | ] |
| 96 | 96 | ] |
@@ -143,13 +143,13 @@ if config_env() == :prod do
| 143 | 143 | [adapter: Swoosh.Adapters.Logger, level: :info] |
| 144 | 144 | end |
| 145 | 145 | |
| 146 | − config :muddle, Muddle.Mailer, mailer_opts | |
| 146 | + config :diogramos, Diogramos.Mailer, mailer_opts | |
| 147 | 147 | |
| 148 | − config :muddle, Muddle.Mailer, | |
| 149 | − from_name: System.get_env("MAIL_FROM_NAME", "Muddle"), | |
| 148 | + config :diogramos, Diogramos.Mailer, | |
| 149 | + from_name: System.get_env("MAIL_FROM_NAME", "Diogramos"), | |
| 150 | 150 | from_address: System.get_env("MAIL_FROM_ADDRESS") || "noreply@#{host}" |
| 151 | 151 | |
| 152 | − config :muddle, MuddleWeb.Endpoint, | |
| 152 | + config :diogramos, DiogramosWeb.Endpoint, | |
| 153 | 153 | url: [host: host, port: 443, scheme: "https"], |
| 154 | 154 | # Accept both http and https origins for the configured host. The |
| 155 | 155 | # `//host` form matches any scheme/port. Without this the LiveView |
@@ -170,7 +170,7 @@ if config_env() == :prod do
| 170 | 170 | # To get SSL working, you will need to add the `https` key |
| 171 | 171 | # to your endpoint configuration: |
| 172 | 172 | # |
| 173 | − # config :muddle, MuddleWeb.Endpoint, | |
| 173 | + # config :diogramos, DiogramosWeb.Endpoint, | |
| 174 | 174 | # https: [ |
| 175 | 175 | # ..., |
| 176 | 176 | # port: 443, |
@@ -186,13 +186,13 @@ if config_env() == :prod do
| 186 | 186 | # |
| 187 | 187 | # `:keyfile` and `:certfile` expect an absolute path to the key |
| 188 | 188 | # and cert in disk or a relative path inside priv, for example |
| 189 | − # "priv/ssl/server.key". For a l l supported SSL configuration | |
| 189 | + # "priv/ssl/server.key". For all supported SSL configuration | |
| 190 | 190 | # options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1 |
| 191 | 191 | # |
| 192 | 192 | # We also recommend setting `force_ssl` in your config/prod.exs, |
| 193 | 193 | # ensuring no data is ever sent via http, always redirecting to https: |
| 194 | 194 | # |
| 195 | − # config :muddle, MuddleWeb.Endpoint, | |
| 195 | + # config :diogramos, DiogramosWeb.Endpoint, | |
| 196 | 196 | # force_ssl: [hsts: true] |
| 197 | 197 | # |
| 198 | 198 | # Check `Plug.SSL` for all available options in `force_ssl`. |
@@ -202,7 +202,7 @@ if config_env() == :prod do
| 202 | 202 | # In production you need to configure the mailer to use a different adapter. |
| 203 | 203 | # Here is an example configuration for Mailgun: |
| 204 | 204 | # |
| 205 | − # config :muddle, Muddle.Mailer, | |
| 205 | + # config :diogramos, Diogramos.Mailer, | |
| 206 | 206 | # adapter: Swoosh.Adapters.Mailgun, |
| 207 | 207 | # api_key: System.get_env("MAILGUN_API_KEY"), |
| 208 | 208 | # domain: System.get_env("MAILGUN_DOMAIN") |
Parents: 0fb4386