Add custom "hook folders" /etc/nginx/{server.d,location.d}
This commit is contained in:
parent
271d123846
commit
4b6ebf31c6
12 changed files with 46 additions and 0 deletions
7
examples/01-phpinfo-behind-https/Caddyfile
Normal file
7
examples/01-phpinfo-behind-https/Caddyfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
https://* {
|
||||
errors stderr
|
||||
tls self_signed
|
||||
proxy / http://backend:80 {
|
||||
transparent
|
||||
}
|
||||
}
|
13
examples/01-phpinfo-behind-https/docker-compose.yml
Normal file
13
examples/01-phpinfo-behind-https/docker-compose.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
version: '3'
|
||||
services:
|
||||
backend:
|
||||
build: ../../
|
||||
volumes:
|
||||
- './index.php:/var/www/index.php'
|
||||
|
||||
frontend:
|
||||
image: abiosoft/caddy
|
||||
volumes:
|
||||
- './Caddyfile:/etc/Caddyfile'
|
||||
ports:
|
||||
- '443:443'
|
3
examples/01-phpinfo-behind-https/index.php
Normal file
3
examples/01-phpinfo-behind-https/index.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
phpinfo();
|
Loading…
Add table
Add a link
Reference in a new issue