add waffle library, handle file upload, authenticate user with oauth and see if they have the link's email associated to their account

This commit is contained in:
2022-02-13 00:20:21 -05:00
parent 5de53e23ea
commit cac3757723
20 changed files with 305 additions and 94 deletions

View File

@@ -33,6 +33,9 @@ config :ueberauth, Ueberauth,
github: {Ueberauth.Strategy.Github, [default_scope: "user:email", allow_private_emails: true]}
]
config :waffle,
storage: Waffle.Storage.Local
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"

View File

@@ -18,7 +18,7 @@ config :entendu, Entendu.Repo,
config :entendu, EntenduWeb.Endpoint,
http: [port: System.get_env("PORT", "4000")],
https: [
port: 4001,
port: 443,
cipher_suite: :strong,
certfile: "priv/cert/selfsigned.pem",
keyfile: "priv/cert/selfsigned_key.pem"