99i commited on
Commit
d66431a
·
verified ·
1 Parent(s): 64e220c

Create Caddyfile

Browse files
Files changed (1) hide show
  1. Caddyfile +16 -0
Caddyfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ # 日志配置
3
+ log {
4
+ output stdout
5
+ format console
6
+ }
7
+ }
8
+
9
+ # 监听端口 80 和 443
10
+ :3000 {
11
+ # 代理 /hf/* 路径到根路径
12
+ handle_path /hf/* {
13
+ rewrite * {path.relative}
14
+ reverse_proxy http://localhost:11434
15
+ }
16
+ }