disable login
This commit is contained in:
parent
4eba121d15
commit
c046b8e5d2
|
@ -41,6 +41,8 @@ registry:
|
||||||
|
|
||||||
# Configure builder setup.
|
# Configure builder setup.
|
||||||
builder:
|
builder:
|
||||||
|
args:
|
||||||
|
MIX_ENV: prod
|
||||||
arch: amd64
|
arch: amd64
|
||||||
dockerfile: ./dockerfiles/bright.dockerfile
|
dockerfile: ./dockerfiles/bright.dockerfile
|
||||||
# Pass in additional build args needed for your Dockerfile.
|
# Pass in additional build args needed for your Dockerfile.
|
||||||
|
@ -90,11 +92,12 @@ ssh:
|
||||||
#
|
#
|
||||||
accessories:
|
accessories:
|
||||||
|
|
||||||
superstreamer:
|
# superstreamer:
|
||||||
env:
|
# host: 45.76.57.101
|
||||||
clear:
|
# env:
|
||||||
PUBLIC_API_ENDPOINT: https://api.superstreamer.futureporn.net
|
# clear:
|
||||||
PUBLIC_STITCHER_ENDPOINT: http://localhost:52002
|
# PUBLIC_API_ENDPOINT: https://api.superstreamer.futureporn.net
|
||||||
|
# PUBLIC_STITCHER_ENDPOINT: http://localhost:52002
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%= if @current_user do %>
|
<!-- <%= if @current_user do %>
|
||||||
<.link
|
<.link
|
||||||
href={~p"/profile"}
|
href={~p"/profile"}
|
||||||
class="navbar-item">
|
class="navbar-item">
|
||||||
|
@ -129,7 +129,7 @@
|
||||||
>
|
>
|
||||||
Log in
|
Log in
|
||||||
</.link>
|
</.link>
|
||||||
<% end %>
|
<% end %> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -53,6 +53,8 @@ defmodule BrightWeb.Router do
|
||||||
|
|
||||||
resources "/vtubers", VtuberController do
|
resources "/vtubers", VtuberController do
|
||||||
get "/vods/new", VodController, :new
|
get "/vods/new", VodController, :new
|
||||||
|
get "/vods", VodController, :index
|
||||||
|
get "/vods/:id", VodController, :show
|
||||||
post "/vods", VodController, :create
|
post "/vods", VodController, :create
|
||||||
get "/vtubers/:id/edit", VtuberController, :edit
|
get "/vtubers/:id/edit", VtuberController, :edit
|
||||||
end
|
end
|
||||||
|
@ -144,19 +146,19 @@ defmodule BrightWeb.Router do
|
||||||
|
|
||||||
## Authentication routes
|
## Authentication routes
|
||||||
|
|
||||||
scope "/", BrightWeb do
|
# scope "/", BrightWeb do
|
||||||
pipe_through [:browser, :redirect_if_user_is_authenticated]
|
# pipe_through [:browser, :redirect_if_user_is_authenticated]
|
||||||
|
|
||||||
live_session :redirect_if_user_is_authenticated,
|
# live_session :redirect_if_user_is_authenticated,
|
||||||
on_mount: [{BrightWeb.UserAuth, :redirect_if_user_is_authenticated}] do
|
# on_mount: [{BrightWeb.UserAuth, :redirect_if_user_is_authenticated}] do
|
||||||
live "/users/register", UserRegistrationLive, :new
|
# live "/users/register", UserRegistrationLive, :new
|
||||||
live "/users/log_in", UserLoginLive, :new
|
# live "/users/log_in", UserLoginLive, :new
|
||||||
live "/users/reset_password", UserForgotPasswordLive, :new
|
# live "/users/reset_password", UserForgotPasswordLive, :new
|
||||||
live "/users/reset_password/:token", UserResetPasswordLive, :edit
|
# live "/users/reset_password/:token", UserResetPasswordLive, :edit
|
||||||
end
|
# end
|
||||||
|
|
||||||
post "/users/log_in", UserSessionController, :create
|
# post "/users/log_in", UserSessionController, :create
|
||||||
end
|
# end
|
||||||
|
|
||||||
scope "/", BrightWeb do
|
scope "/", BrightWeb do
|
||||||
pipe_through [:browser, :require_authenticated_user]
|
pipe_through [:browser, :require_authenticated_user]
|
||||||
|
|
Loading…
Reference in New Issue