diff --git a/Dockerfile b/Dockerfile index 224d0ed..0bb17c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,8 +47,5 @@ COPY --from=install /temp/prod/node_modules node_modules # COPY --from=prerelease /app/package.json . COPY . . -# create folder data -RUN mkdir -p /app/data && chmod 755 /app/data - EXPOSE 3000/tcp ENTRYPOINT [ "bun", "run", "./src/index.tsx" ] \ No newline at end of file diff --git a/README.md b/README.md index 51922c2..70070f1 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ services: image: ghcr.io/c4illin/convertx:main ports: - "3000:3000" - environment: # Defaults are listed below + environment: # Defaults are listed below. All are optional. - ACCOUNT_REGISTRATION=false # true or false, doesn't matter for the first account (e.g. keep this to false if you only want one account) - - JWT_SECRET=aLongAndSecretStringUsedToSignTheJSONWebToken1234 + - JWT_SECRET=aLongAndSecretStringUsedToSignTheJSONWebToken1234 # will use randomUUID() by default - HTTP_ALLOWED=false # setting this to true is unsafe, only set this to true locally volumes: - convertx:/app/data diff --git a/compose.yaml b/compose.yaml index 4fd02bb..0941302 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,6 +5,7 @@ services: volumes: - ./data:/app/data environment: - NODE_ENV: production + - ACCOUNT_REGISTRATION=true + - JWT_SECRET=aLongAndSecretStringUsedToSignTheJSONWebToken1234 ports: - 3000:3000 diff --git a/src/components/header.tsx b/src/components/header.tsx index d81b0b1..6ed5aa1 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -1,4 +1,7 @@ -export const Header = ({ loggedIn }: { loggedIn?: boolean }) => { +export const Header = ({ + loggedIn, + accountRegistration, +}: { loggedIn?: boolean; accountRegistration?: boolean }) => { let rightNav: JSX.Element; if (loggedIn) { rightNav = ( @@ -17,15 +20,17 @@ export const Header = ({ loggedIn }: { loggedIn?: boolean }) => {