add two more
This commit is contained in:
parent
fe9ebd9850
commit
fb3a995df3
|
|
@ -24,11 +24,9 @@ services:
|
|||
container_name: sec_lab_victim_nginx
|
||||
ports:
|
||||
- "8721:80"
|
||||
- "8722:443"
|
||||
volumes:
|
||||
- ./:/var/www/html:ro
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./docker/nginx/certs:/etc/nginx/certs
|
||||
depends_on:
|
||||
- php
|
||||
networks:
|
||||
|
|
@ -44,7 +42,6 @@ services:
|
|||
context: .
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
args:
|
||||
# اینجا میتوانید آدرس Nexus داخلی سرور خود را بدهید
|
||||
- COMPOSER_REGISTRY=https://mirror-composer.runflare.com
|
||||
- LINUX_REGISTRY=http://mirror.arvancloud.ir/debian
|
||||
- SECURITY_REGISTRY=http://mirror.arvancloud.ir/debian-security
|
||||
|
|
@ -70,9 +67,8 @@ services:
|
|||
ports:
|
||||
- "8723:80"
|
||||
volumes:
|
||||
- ./:/var/www/html:ro # حالا هکر هم به کدهای لاراول دسترسی دارد
|
||||
- ./docker/nginx/hacker.conf:/etc/nginx/conf.d/default.conf:ro # کانفیگ اختصاصی هکر
|
||||
- ./docker/nginx/certs:/etc/nginx/certs
|
||||
- ./:/var/www/html:ro
|
||||
- ./docker/nginx/hacker.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
- php
|
||||
networks:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ server {
|
|||
server_name webapp.kr-rezvan.ir blog.webapp.kr-rezvan.ir;
|
||||
|
||||
root /var/www/html/public;
|
||||
index index.php;
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
|
|
@ -11,11 +11,7 @@ server {
|
|||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
|
||||
# هدرهای پروکسی را به PHP-FPM پاس بده تا لاراول متوجه HTTPS بودن بشود
|
||||
fastcgi_param HTTP_X_FORWARDED_PROTO https;
|
||||
fastcgi_param HTTP_X_FORWARDED_PORT 443;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ server {
|
|||
server_name hackerapp.eitebar.ir;
|
||||
|
||||
root /var/www/html/public;
|
||||
index index.php;
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
|
|
@ -11,10 +11,7 @@ server {
|
|||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param HTTP_X_FORWARDED_PROTO https;
|
||||
fastcgi_param HTTP_X_FORWARDED_PORT 443;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user