init
This commit is contained in:
2
caddy/.env
Normal file
2
caddy/.env
Normal file
@@ -0,0 +1,2 @@
|
||||
UID=1001
|
||||
GID=1001
|
||||
2
caddy/.gitignore
vendored
Normal file
2
caddy/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
config/
|
||||
data/
|
||||
19
caddy/compose.yaml
Normal file
19
caddy/compose.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2.11
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
volumes:
|
||||
- ./conf:/etc/caddy
|
||||
- ./site:/srv
|
||||
- ./data:/data
|
||||
- ./config:/config
|
||||
networks:
|
||||
- eryfel-net
|
||||
|
||||
networks:
|
||||
eryfel-net:
|
||||
external: true
|
||||
16
caddy/conf/Caddyfile
Normal file
16
caddy/conf/Caddyfile
Normal file
@@ -0,0 +1,16 @@
|
||||
eryfel.net {
|
||||
root * /srv
|
||||
file_server
|
||||
}
|
||||
|
||||
www.eryfel.net {
|
||||
redir https://eryfel.net{uri}
|
||||
}
|
||||
|
||||
git.eryfel.net {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
cal.eryfel.net {
|
||||
reverse_proxy radicale:5232
|
||||
}
|
||||
BIN
caddy/site/beian.png
Executable file
BIN
caddy/site/beian.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
80
caddy/site/index.html
Normal file
80
caddy/site/index.html
Normal file
@@ -0,0 +1,80 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Ery's Space</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background-color: #f8f9fa;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.container {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
}
|
||||
h1 { font-weight: 300; letter-spacing: 1px; }
|
||||
.sub-text { color: #95a5a6; font-size: 0.9rem; }
|
||||
|
||||
/* 备案信息布局 */
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5px; /* 两行之间的间距 */
|
||||
}
|
||||
|
||||
.line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 20px; /* 固定高度确保对齐 */
|
||||
}
|
||||
|
||||
.beian-link {
|
||||
text-decoration: none;
|
||||
color: #bdc3c7;
|
||||
font-size: 12px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.beian-link:hover {
|
||||
color: #3498db;
|
||||
}
|
||||
|
||||
.beian-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 4px;
|
||||
/* 图片与文字中轴线对齐的关键 */
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Welcome</h1>
|
||||
<p class="sub-text">Ery's Technical Space</p>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="line">
|
||||
<a href="https://beian.miit.gov.cn/" target="_blank" class="beian-link">蜀ICP备2026009904号-1</a>
|
||||
</div>
|
||||
|
||||
<div class="line">
|
||||
<img src="beian.png" class="beian-icon" alt="公安备案图标"/>
|
||||
<a href="https://beian.mps.gov.cn/#/query/webSearch?code=51015602001641" rel="noreferrer" target="_blank" class="beian-link">川公网安备51015602001641号</a>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user