add two more

This commit is contained in:
mcoder 2026-07-03 20:10:02 +03:30
parent fe9ebd9850
commit fb3a995df3
3 changed files with 6 additions and 17 deletions

View File

@ -24,11 +24,9 @@ services:
container_name: sec_lab_victim_nginx container_name: sec_lab_victim_nginx
ports: ports:
- "8721:80" - "8721:80"
- "8722:443"
volumes: volumes:
- ./:/var/www/html:ro - ./:/var/www/html:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/nginx/certs:/etc/nginx/certs
depends_on: depends_on:
- php - php
networks: networks:
@ -44,7 +42,6 @@ services:
context: . context: .
dockerfile: ./docker/php/Dockerfile dockerfile: ./docker/php/Dockerfile
args: args:
# اینجا می‌توانید آدرس Nexus داخلی سرور خود را بدهید
- COMPOSER_REGISTRY=https://mirror-composer.runflare.com - COMPOSER_REGISTRY=https://mirror-composer.runflare.com
- LINUX_REGISTRY=http://mirror.arvancloud.ir/debian - LINUX_REGISTRY=http://mirror.arvancloud.ir/debian
- SECURITY_REGISTRY=http://mirror.arvancloud.ir/debian-security - SECURITY_REGISTRY=http://mirror.arvancloud.ir/debian-security
@ -70,9 +67,8 @@ services:
ports: ports:
- "8723:80" - "8723:80"
volumes: volumes:
- ./:/var/www/html:ro # حالا هکر هم به کدهای لاراول دسترسی دارد - ./:/var/www/html:ro
- ./docker/nginx/hacker.conf:/etc/nginx/conf.d/default.conf:ro # کانفیگ اختصاصی هکر - ./docker/nginx/hacker.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/nginx/certs:/etc/nginx/certs
depends_on: depends_on:
- php - php
networks: networks:

View File

@ -3,7 +3,7 @@ server {
server_name webapp.kr-rezvan.ir blog.webapp.kr-rezvan.ir; server_name webapp.kr-rezvan.ir blog.webapp.kr-rezvan.ir;
root /var/www/html/public; root /var/www/html/public;
index index.php; index index.php index.html;
location / { location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
@ -11,11 +11,7 @@ server {
location ~ \.php$ { location ~ \.php$ {
fastcgi_pass php:9000; fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# هدرهای پروکسی را به PHP-FPM پاس بده تا لاراول متوجه HTTPS بودن بشود
fastcgi_param HTTP_X_FORWARDED_PROTO https;
fastcgi_param HTTP_X_FORWARDED_PORT 443;
} }
} }

View File

@ -3,7 +3,7 @@ server {
server_name hackerapp.eitebar.ir; server_name hackerapp.eitebar.ir;
root /var/www/html/public; root /var/www/html/public;
index index.php; index index.php index.html;
location / { location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
@ -11,10 +11,7 @@ server {
location ~ \.php$ { location ~ \.php$ {
fastcgi_pass php:9000; fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_X_FORWARDED_PROTO https;
fastcgi_param HTTP_X_FORWARDED_PORT 443;
} }
} }