fix typo
This commit is contained in:
parent
e326816fb7
commit
9bc2d24569
@ -9,9 +9,10 @@
|
|||||||
#ServerName www.example.com
|
#ServerName www.example.com
|
||||||
|
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /
|
DocumentRoot /app/src/api
|
||||||
ProxyPass /hcportal http://127.0.0.1:80/app retry=1 acquire=3000 timeout=600 Keepalive=On
|
|
||||||
<Directory /app>
|
<Directory /app/src/api>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
DirectoryIndex index.php
|
DirectoryIndex index.php
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
|
@ -19,15 +19,21 @@ services:
|
|||||||
- hcportalnetwork
|
- hcportalnetwork
|
||||||
volumes:
|
volumes:
|
||||||
- ./be:/app
|
- ./be:/app
|
||||||
|
- ./apache-config.conf:/etc/apache2/sites-available/000-default.conf:ro
|
||||||
|
- backend-vendor:/app/src/api/vendor
|
||||||
owasp:
|
owasp:
|
||||||
container_name: owasp-hcportal
|
container_name: owasp-hcportal
|
||||||
image: owasp/modsecurity-crs:3.3.5-nginx-202401080101
|
image: owasp/modsecurity-crs:3.3.5-nginx-202401080101
|
||||||
environment:
|
environment:
|
||||||
- backend=http://be:80
|
- BACKEND=http://be:80
|
||||||
|
- BACKEND_PROTO=http
|
||||||
|
- PORT=80
|
||||||
networks:
|
networks:
|
||||||
- hcportalnetwork
|
- hcportalnetwork
|
||||||
ports:
|
ports:
|
||||||
- 8888:80
|
- 8888:80
|
||||||
|
volumes:
|
||||||
|
- ./nginx-config/custom-buffers.conf:/etc/nginx/conf.d/custom-buffers.conf:ro
|
||||||
links:
|
links:
|
||||||
- be
|
- be
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -35,3 +41,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
hcportalnetwork:
|
hcportalnetwork:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
backend-vendor:
|
||||||
|
14
nginx-config/custom-buffers.conf
Normal file
14
nginx-config/custom-buffers.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Custom buffer size configuration to handle large headers and cookies
|
||||||
|
client_header_buffer_size 16k;
|
||||||
|
large_client_header_buffers 8 32k;
|
||||||
|
client_max_body_size 100M;
|
||||||
|
client_body_buffer_size 128k;
|
||||||
|
|
||||||
|
# Additional proxy buffer settings
|
||||||
|
proxy_buffer_size 16k;
|
||||||
|
proxy_buffers 8 32k;
|
||||||
|
proxy_busy_buffers_size 64k;
|
||||||
|
|
||||||
|
# Prevent X-Forwarded-For header from growing infinitely
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
Loading…
x
Reference in New Issue
Block a user