You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OIDC_SCOPE='openid profile email api offline_access' \
181
+
npm run start
182
+
```
183
+
184
+
> **DO NOT FORGET** to randomize `NEXTAUTH_SECRET` value for Production Environment with https://generate-secret.vercel.app/32 or `openssl rand -base64 32`
185
+
186
+
To use HTTPS Certificate, simply use reverse proxy such as [NGINX](https://www.nginx.com/resources/wiki/start/topics/tutorials/install/) or [Traefik](https://doc.traefik.io/traefik/getting-started/install-traefik/).
187
+
164
188
## Building and Running as Container
165
189
166
190
This template ships with `Dockerfile` and `.dockerignore` for building the app as a standard container image. To proceed, please [install Docker](https://docs.docker.com/get-docker/) or any OCI container CLI such as [`podman`](https://podman.io/) in your machine. (The examples given will use Docker)
-e OIDC_SCOPE="openid profile email api offline_access" \
216
+
-p 80:80 \
217
+
--network my-network \
218
+
--restart always \
219
+
--name my-container \
220
+
-d my-app
197
221
```
198
222
223
+
> **DO NOT FORGET** to randomize `NEXTAUTH_SECRET` value for Production Environment with https://generate-secret.vercel.app/32 or `openssl rand -base64 32`
224
+
199
225
## `AppSettings` API
200
226
201
227
[Next.js allows using `process.env` to read Environment Variables](https://nextjs.org/docs/basic-features/environment-variables), but it is not suitable for container-based deployment because the Environment Variables are burned during build-time (non-changeable).
@@ -450,6 +476,10 @@ spec:
450
476
451
477
> TODO
452
478
479
+
## Security Headers
480
+
481
+
> TODO
482
+
453
483
## Step Debugging with Visual Studio Code
454
484
455
485
This template ships with Visual Studio Code step debugging support. Simply press F5 to start debugging.
0 commit comments