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
Starting the container at this point will start Nginx-Proxy-Manager as before but will create a new file in /config/crowdsec/ called crowdsec-openresty-bouncer.conf
20
+
21
+
You will need to edit this file with at least the following changes then restart the container.
22
+
23
+
```
24
+
ENABLED=true
25
+
API_URL=http://<crowdsecserver>:8080
26
+
API_KEY=<APIKEY>
27
+
```
28
+
29
+
the crowdsec api key can be generated on the crowdsec instance using the following command
30
+
31
+
```
32
+
cscli bouncers add npm-proxy
33
+
```
34
+
35
+
Currently this is a side project and I will try keep this up to date
| -d | Run the container in the background. If not set, the container runs in the foreground. |
83
-
| -e | Pass an environment variable to the container. See the [Environment Variables](#environment-variables) section for more details. |
84
-
| -v | Set a volume mapping (allows to share a folder/file between the host and the container). See the [Data Volumes](#data-volumes) section for more details. |
85
-
| -p | Set a network port mapping (exposes an internal container port to the host). See the [Ports](#ports) section for more details. |
118
+
| -d | Run the container in the background. If not set, the container runs in the foreground. |
119
+
| -e | Pass an environment variable to the container. See the [Environment Variables](#environment-variables) section for more details. |
120
+
| -v | Set a volume mapping (allows to share a folder/file between the host and the container). See the [Data Volumes](#data-volumes) section for more details. |
121
+
| -p | Set a network port mapping (exposes an internal container port to the host). See the [Ports](#ports) section for more details. |
86
122
87
123
### Environment Variables
88
124
89
125
To customize some properties of the container, the following environment
90
-
variables can be passed via the `-e` parameter (one for each variable). Value
126
+
variables can be passed via the `-e` parameter (one for each variable). Value
91
127
of this parameter has the format `<VARIABLE_NAME>=<VALUE>`.
92
128
93
129
| Variable | Description | Default |
@@ -108,7 +144,7 @@ of this parameter has the format `<VARIABLE_NAME>=<VALUE>`.
108
144
#### Deployment Considerations
109
145
110
146
Many tools used to manage Docker containers extract environment variables
111
-
defined by the Docker image and use them to create/deploy the container. For
147
+
defined by the Docker image and use them to create/deploy the container. For
112
148
example, this is done by:
113
149
- The Docker application on Synology NAS
114
150
- The Container Station on QNAP NAS
@@ -120,33 +156,33 @@ variables to fit its needs, it can also be confusing and dangerous to keep all
120
156
of them.
121
157
122
158
A good practice is to set/keep only the variables that are needed for the
123
-
container to behave as desired in a specific setup. If the value of variable is
124
-
kept to its default value, it means that it can be removed. Keep in mind that
159
+
container to behave as desired in a specific setup. If the value of variable is
160
+
kept to its default value, it means that it can be removed. Keep in mind that
125
161
all variables are optional, meaning that none of them is required for the
126
162
container to start.
127
163
128
164
Removing environment variables that are not needed provides some advantages:
129
165
130
-
- Prevents keeping variables that are no longer used by the container. Over
166
+
- Prevents keeping variables that are no longer used by the container. Over
131
167
time, with image updates, some variables might be removed.
132
-
- Allows the Docker image to change/fix a default value. Again, with image
168
+
- Allows the Docker image to change/fix a default value. Again, with image
133
169
updates, the default value of a variable might be changed to fix an issue,
134
170
or to better support a new feature.
135
171
- Prevents changes to a variable that might affect the correct function of
136
-
the container. Some undocumented variables, like `PATH` or `ENV`, are
137
-
required to be exposed, but are not meant to be changed by users. However,
172
+
the container. Some undocumented variables, like `PATH` or `ENV`, are
173
+
required to be exposed, but are not meant to be changed by users. However,
138
174
container management tools still show these variables to users.
139
175
- There is a bug with the Container Station on QNAP and the Docker application
140
176
on Synology, where an environment variable without value might not be
141
-
allowed. This behavior is wrong: it's absolutely fine to have a variable
142
-
without value. In fact, this container does have variables without value by
143
-
default. Thus, removing unneeded variables is a good way to prevent
177
+
allowed. This behavior is wrong: it's absolutely fine to have a variable
178
+
without value. In fact, this container does have variables without value by
179
+
default. Thus, removing unneeded variables is a good way to prevent
144
180
deployment issue on these devices.
145
181
146
182
### Data Volumes
147
183
148
-
The following table describes data volumes used by the container. The mappings
149
-
are set via the `-v` parameter. Each mapping is specified with the following
184
+
The following table describes data volumes used by the container. The mappings
185
+
are set via the `-v` parameter. Each mapping is specified with the following
0 commit comments