docker modsecurity
This commit is contained in:
parent
de2a35905e
commit
22f312cbb9
|
@ -1 +1,2 @@
|
|||
nodejs 23.1.0
|
||||
bun 1.1.43
|
||||
|
|
BIN
client/bun.lockb
BIN
client/bun.lockb
Binary file not shown.
2235
client/package-lock.json
generated
2235
client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -15,17 +15,12 @@
|
|||
{
|
||||
"allow": [
|
||||
{
|
||||
"url": "http://*"
|
||||
},
|
||||
{
|
||||
"url": "https://*"
|
||||
},
|
||||
{
|
||||
"url": "http://localhost:5000"
|
||||
"url": "http://*:*"
|
||||
}
|
||||
],
|
||||
"identifier": "http:default"
|
||||
}
|
||||
},
|
||||
"http:default"
|
||||
],
|
||||
"windows": [
|
||||
"main"
|
||||
|
|
|
@ -10,7 +10,7 @@ export const ServerUrlInput = () => {
|
|||
<TextField
|
||||
fullWidth
|
||||
label="Backend server URL"
|
||||
// onChange={(event) => setServerUrl(event.target.value)}
|
||||
onChange={(event) => setServerUrl(event.target.value)}
|
||||
size="small"
|
||||
value={serverUrl}
|
||||
/>
|
||||
|
|
19
docker/modsecurity/README
Normal file
19
docker/modsecurity/README
Normal file
|
@ -0,0 +1,19 @@
|
|||
docker run -it --rm \
|
||||
-p 8080:8080 \
|
||||
--add-host host.docker.internal:host-gateway \
|
||||
-e BACKEND="http://host.docker.internal:5000" \
|
||||
-e SERVER_NAME=localhost \
|
||||
-e PORT=8080 \
|
||||
owasp/modsecurity-crs:apache
|
||||
|
||||
docker run \
|
||||
-ti \
|
||||
-p 8080:8080 \
|
||||
--rm \
|
||||
-v /tmp/host-fs-auditlog.log:/var/log/modsec_audit.log \
|
||||
-v /tmp/host-fs-errorlog.log:/var/log/modsec_error.log \
|
||||
-e MODSEC_AUDIT_ENGINE=on \
|
||||
-e MODSEC_AUDIT_LOG=/var/log/modsec_audit.log \
|
||||
-e LOGLEVEL=warn \
|
||||
-e ERRORLOG=/var/log/modsec_error.log \
|
||||
owasp/modsecurity-crs:apache
|
19
docker/modsecurity/docker-compose.yml
Normal file
19
docker/modsecurity/docker-compose.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
services:
|
||||
modsecurity:
|
||||
image: owasp/modsecurity-crs:apache
|
||||
container_name: modsecurity
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
environment:
|
||||
BACKEND: "http://host.docker.internal:5000"
|
||||
SERVER_NAME: "localhost"
|
||||
PORT: "8080"
|
||||
networks:
|
||||
- modsec-network
|
||||
|
||||
networks:
|
||||
modsec-network:
|
||||
driver: bridge
|
Loading…
Reference in a new issue