Skip to content

Commit

Permalink
thing
Browse files Browse the repository at this point in the history
  • Loading branch information
brycecoon committed Dec 9, 2024
1 parent 2669597 commit 0b31581
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions client-default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 80;
server_name _;

location / {
root /usr/share/nginx/html;
try_files $uri /index.html; # this is the magic line
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
1 change: 1 addition & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ FROM nginx:alpine
WORKDIR /usr/share/nginx/
RUN rm -rf html
RUN mkdir html
COPY client-default.conf /etc/nginx/conf.d/default.conf

COPY --from=myapp /moviesearchfrontend/dist /usr/share/nginx/html
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const oidcConfig: AuthProviderProps = {
authority: "https://auth.snowse.duckdns.org/realms/advanced-frontend/",
client_id: "bryce-oAuth2",
redirect_uri:
// "https://moviesearch.duckdns.org/",
"http://localhost:5173/",
"https://moviesearch.duckdns.org/",
// "http://localhost:5173/",
onSigninCallback: () => {
const url =
window.location.protocol +
Expand Down

0 comments on commit 0b31581

Please sign in to comment.