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
Go into the directory containing your project (`<project-name>`), and start the app in production mode:
58
64
59
-
$ SERVER_NAME=your-domain-name.example.com docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
65
+
```console
66
+
SERVER_NAME=your-domain-name.example.com \
67
+
APP_SECRET=ChangeMe \
68
+
MERCURE_PUBLISHER_JWT_KEY=ChangeMe \
69
+
MERCURE_SUBSCRIBER_JWT_KEY=ChangeMe \
70
+
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
71
+
```
60
72
61
-
Be sure to replace `your-domain-name.example.com` by your actual domain name.
73
+
Be sure to replace `your-domain-name.example.com` by your actual domain name and to set the values of `APP_SECRET`, `MERCURE_PUBLISHER_JWT_KEY` and `MERCURE_SUBSCRIBER_JWT_KEY` to cryptographically secure random values.
62
74
63
75
Your server is up and running, and a Let's Encrypt HTTPS certificate has been automatically generated for you.
64
76
Go to `https://your-domain-name.example.com` and enjoy!
65
77
66
-
## Disabling HTTPS
78
+
## Disabling HTTPS
67
79
68
80
Alternatively, if you don't want to expose an HTTPS server but only an HTTP one, run the following command:
69
81
70
-
$ SERVER_NAME=:80 docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
82
+
```console
83
+
SERVER_NAME=:80 \
84
+
APP_SECRET=ChangeMe \
85
+
MERCURE_PUBLISHER_JWT_KEY=ChangeMe \
86
+
MERCURE_SUBSCRIBER_JWT_KEY=ChangeMe \
87
+
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
0 commit comments