Skip to content

Commit

Permalink
Use prod env values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortovoxx committed Mar 6, 2024
1 parent 873984b commit 9fb0638
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Run on a specific port
PORT=3000

# Database connection string
DATABASE_URI=mongodb://127.0.0.1/ecss-website-cms

# Used to encrypt JWT tokens
PAYLOAD_SECRET=YOUR_SECRET_HERE

# Used to format links and URLs
PAYLOAD_PUBLIC_SERVER_URL=https://society.ecs.soton.ac.uk
NEXT_PUBLIC_SERVER_URL=https://society.ecs.soton.ac.uk

# Allow robots to index the site (optional)
NEXT_PUBLIC_IS_LIVE=

# Used to preview drafts
PAYLOAD_PUBLIC_DRAFT_SECRET=demo-draft-secret
NEXT_PRIVATE_DRAFT_SECRET=demo-draft-secret

# Used to revalidate static pages
REVALIDATION_KEY=demo-revalation-key
NEXT_PRIVATE_REVALIDATION_KEY=demo-revalation-key

# Quickfile vars
# The quickfile account number (can be found at the top right of the page)
QUICK_ACCOUNT_NUMBER=12345678
# The IDs of the applications used (can be found/created at /apps)
QUICK_APPLICATION_IDS=12345678-9012-3456-7890-123456789012,12345678-9012-3456-7890-123456789012,12345678-9012-3456-7890-123456789012
# The API KEYs generated for your account to authenticate your access to the quickfile API (can be found at /apps)
QUICK_ACCOUNT_API_KEY=012345678-A012-0A1B-0

# Stripe vars
STRIPE_API_KEY=sk_test_26PHem9AhJZvU623DfE1x4sd
STRIPE_ENDPOINT_SECRET=whsec_26PHem9AhJZvU623DfE1x4sd

# University of Southampton Azure AD Tenant ID - Change only if you want to auth with a different tenant ( ie univerisity account etc )
AZURE_AD_TENANT_ID="4a5378f9-29f4-4d3e-be89-669d03ada9d8"
AZURE_AD_CLIENT_SECRET=
AZURE_AD_CLIENT_ID=

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /home/node/app
COPY --from=deps /home/node/app/node_modules ./node_modules

COPY . .
COPY .env.example .env
COPY .env.production .env

RUN --network=host npm run build

Expand Down

0 comments on commit 9fb0638

Please sign in to comment.