[~] Refactor
This commit is contained in:
parent
f3783284a1
commit
43d18d9020
@ -75,7 +75,7 @@ def forward(
|
||||
|
||||
http {
|
||||
log_format main
|
||||
'[$time_local][$remote_addr, $http_x_forwarded_for, $t1, $http_host]'
|
||||
'[$time_local][$remote_addr:$remote_port, $http_x_forwarded_for, $t1, $http_host]'
|
||||
'[$request_length,$bytes_sent,$request_time]'
|
||||
'[$status][$request]'
|
||||
'[$http_user_agent][$http_referer]';
|
||||
@ -128,6 +128,8 @@ server {
|
||||
listen 443 ssl;
|
||||
server_name {server_names};
|
||||
|
||||
client_max_body_size {client_max_body_size};
|
||||
|
||||
ssl_certificate {signed_chain_cert};
|
||||
ssl_certificate_key {domain_key};
|
||||
|
||||
@ -146,6 +148,8 @@ server {
|
||||
'{server_names}', ' '.join(server['server_names'])
|
||||
).replace(
|
||||
'{signed_chain_cert}', server['signed_chain_cert'],
|
||||
).replace(
|
||||
'{client_max_body_size}', server['client_max_body_size'],
|
||||
).replace(
|
||||
'{domain_key}', server['domain_key'],
|
||||
)
|
||||
@ -164,7 +168,7 @@ events {
|
||||
|
||||
http {
|
||||
log_format main
|
||||
'[$time_local][$remote_addr, $http_x_forwarded_for, $t1, $http_host]'
|
||||
'[$time_local][$remote_addr:$remote_port, $http_x_forwarded_for, $t1, $http_host]'
|
||||
'[$request_length,$bytes_sent,$request_time]'
|
||||
'[$status][$request]'
|
||||
'[$http_user_agent][$http_referer]';
|
||||
|
@ -17,6 +17,7 @@ services:
|
||||
- ./tmp/d1/:/app/tmp/d1/:ro
|
||||
- ./tmp/d1/letsencrypt:/etc/letsencrypt:rw
|
||||
restart: always
|
||||
|
||||
cpanel:
|
||||
build:
|
||||
context: .
|
||||
|
Loading…
Reference in New Issue
Block a user