File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ only advised in development.
68
68
69
69
For security reasons, the server expects to run on HTTPS (also known as HTTP+TLS).
70
70
71
- To run insecure, set the environment variable ` ENVIRONMENT ` to ` develop ` . This
72
- will prohibit the application from running in production mode.
71
+ To run insecure, for instance when the application is run behind a proxy or in a
72
+ PHP-FPM (or similar) setup, set the environment variable ` PROXY_MODE ` .
73
+ This will allow the application to accept HTTP requests.
73
74
74
75
### Docker images
75
76
@@ -197,6 +198,11 @@ The underlying functionality for these features is provided by:
197
198
198
199
## Development
199
200
201
+ The easiest way to develop this project is by running the environment provided
202
+ by the ` docker-compose.yml ` file. This can be done by running ` docker-compose up ` .
203
+
204
+ This will start the application and a pubsub server in separate docker containers.
205
+
200
206
### Project structure
201
207
202
208
This project is structured as follows:
Original file line number Diff line number Diff line change @@ -4,8 +4,13 @@ services:
4
4
build :
5
5
context : .
6
6
environment :
7
+ # During development it can be useful to set the ENVIRONMENT to "development"
8
+ # in order to see more details about the errors.
9
+ # ENVIRONMENT: development
7
10
USERNAME : alice
8
11
PASSWORD : alice123
12
+ # to run in HTTP mode, set PROXY_MODE
13
+ # PROXY_MODE: true
9
14
PUBSUB_URL : http://pubsub:8080
10
15
ports :
11
16
- 80:80
You can’t perform that action at this time.
0 commit comments