diff options
| author | seth <[email protected]> | 2023-02-08 07:40:14 +0000 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-08 07:42:43 +0000 |
| commit | 21fa4856be8de330d2351159b680c630e5f0aa07 (patch) | |
| tree | 79ca7a9fb5da1579ef53e22e35edb2620cda1dd1 | |
| parent | 5e4b6ebb8c9e6adaf1ab12802beb82c59c88dcab (diff) | |
fix issues with paths
| -rw-r--r-- | caddy/Caddyfile | 9 | ||||
| -rw-r--r-- | docker-compose.yml | 2 | ||||
| -rw-r--r-- | src/404.html | 2 | ||||
| -rw-r--r-- | src/index.html | 4 | ||||
| -rw-r--r-- | src/lul.html | 2 |
5 files changed, 13 insertions, 6 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 1bb889f..4cee1a1 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -13,7 +13,14 @@ (common_domain) { encode gzip handle { - try_files {path} {path}/ =404 + try_files {path} {path}/ + } + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + rewrite @404 /404.html + file_server } } diff --git a/docker-compose.yml b/docker-compose.yml index 9298293..f1af4c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: restart: unless-stopped volumes: - ./caddy/Caddyfile:/etc/caddy/Caddyfile:z - - ./caddy/data:/data + - ./caddy/data:/data:z - ./src/:/var/www:z depends_on: api api: diff --git a/src/404.html b/src/404.html index 2c3441c..3beaf9a 100644 --- a/src/404.html +++ b/src/404.html @@ -6,7 +6,7 @@ <title>guzzle guzzle</title> <meta name="description" content="seth's server for random stuff" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <link rel="stylesheet" href="css/guzzle.css" /> + <link rel="stylesheet" href="/css/guzzle.css" /> </head> <body> diff --git a/src/index.html b/src/index.html index 62a1088..65ccc70 100644 --- a/src/index.html +++ b/src/index.html @@ -6,7 +6,7 @@ <title>guzzle guzzle</title> <meta name="description" content="seth's server for random stuff" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <link rel="stylesheet" href="css/guzzle.css" /> + <link rel="stylesheet" href="/css/guzzle.css" /> </head> <body> @@ -18,7 +18,7 @@ <li>1.19.2 quilt server (w/ origins)</li> <li> <a href="https://github.com/getchoo/guzzle_api">guzzle_api</a> (for - <a href="https://github.com/getchoo/moyaiBot"> moyaibot</a>) + <a href="https://github.com/getchoo/teawieBot"> teawiebot</a>) </li> </ul> <br /> diff --git a/src/lul.html b/src/lul.html index d0cf4e7..2a0e66e 100644 --- a/src/lul.html +++ b/src/lul.html @@ -6,7 +6,7 @@ <title>fard</title> <!-- <meta name="description" content="yuh"/> --> <!-- <meta name="viewport" content="width=device-width, initial-scale=1"/> --> - <link rel="stylesheet" href="css/guzzle.css" /> + <link rel="stylesheet" href="/css/guzzle.css" /> </head> <body> <div id="vidya"> |
