add first-in-first-out queue for image prompts, and add pagination

This commit is contained in:
2022-08-31 15:45:06 -04:00
parent 559f6f959f
commit 7990246675
27 changed files with 236 additions and 143 deletions

View File

@@ -12,9 +12,10 @@ config :diffuser,
# Configures the endpoint
config :diffuser, DiffuserWeb.Endpoint,
url: [host: "localhost"],
url: [host: "https://ai.silentsilas.com"],
render_errors: [view: DiffuserWeb.ErrorView, accepts: ~w(html json), layout: false],
pubsub_server: Diffuser.PubSub,
check_origin: false,
live_view: [signing_salt: "mxn2AV/s"]
# Configures the mailer
@@ -51,7 +52,7 @@ config :phoenix, :json_library, Jason
config :waffle,
storage: Waffle.Storage.Local,
# or {:system, "ASSET_HOST"}
asset_host: "http://localhost:4000"
asset_host: "https://ai.silentsilas.com"
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.

View File

@@ -19,7 +19,7 @@ config :diffuser, Diffuser.Repo,
config :diffuser, DiffuserWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
http: [ip: {0, 0, 0, 0}, port: 4000],
check_origin: false,
code_reloader: true,
debug_errors: true,