parent
0d55f01bfc
commit
bd50f4142f
@ -1 +1 @@ |
||||
1.0.11 |
||||
1.0.12 |
||||
|
@ -0,0 +1,22 @@ |
||||
# This file is automatically managed by ceod. |
||||
# DO NOT EDIT THIS FILE MANUALLY UNLESS YOU KNOW WHAT YOU ARE DOING. |
||||
|
||||
{{ domain }} { |
||||
reverse_proxy http://{{ ip_address }} |
||||
log { |
||||
output file /var/log/caddy/member_{{ username }}.log { |
||||
roll_size 5MiB |
||||
roll_keep 2 |
||||
} |
||||
format filter { |
||||
wrap json |
||||
fields { |
||||
request>headers delete |
||||
request>tls delete |
||||
resp_headers delete |
||||
user_id delete |
||||
common_log delete |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,25 +0,0 @@ |
||||
# This file is automatically managed by ceod. |
||||
# DO NOT EDIT THIS FILE MANUALLY. |
||||
# If you want to modify it, please move it to another directory. |
||||
|
||||
server { |
||||
listen 80; |
||||
listen [::]:80; |
||||
server_name {{ domain }}; |
||||
return 301 https://$host$request_uri; |
||||
} |
||||
|
||||
server { |
||||
listen 443 ssl; |
||||
listen [::]:443 ssl; |
||||
server_name {{ domain }}; |
||||
ssl_certificate {{ ssl_cert_path }}; |
||||
ssl_certificate_key {{ ssl_key_path }}; |
||||
|
||||
location / { |
||||
proxy_pass http://{{ ip_address }}; |
||||
} |
||||
|
||||
access_log /var/log/nginx/member-{{ username }}-access.log; |
||||
error_log /var/log/nginx/member-{{ username }}-error.log; |
||||
} |
Loading…
Reference in new issue