Compare commits
	
		
			2 Commits
		
	
	
		
			cd00151fbd
			...
			47c1780ebb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 47c1780ebb | |||
| 5e4f85a2c5 | 
							
								
								
									
										9
									
								
								conf.d/ddpe.boba.best
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								conf.d/ddpe.boba.best
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					# vim: ft=caddyfile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ddpe.boba.best {
 | 
				
			||||||
 | 
					    encode zstd gzip
 | 
				
			||||||
 | 
					    import hsts
 | 
				
			||||||
 | 
					    import log
 | 
				
			||||||
 | 
					    reverse_proxy localhost:86
 | 
				
			||||||
 | 
					    import basicerrors
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,27 +1,28 @@
 | 
				
			|||||||
{{ $code := placeholder "http.error.status_code" -}}
 | 
					{{ $code := placeholder "http.error.status_code" -}}
 | 
				
			||||||
{{ $text := placeholder "http.error.status_text" -}}
 | 
					{{ $text := placeholder "http.error.status_text" -}}
 | 
				
			||||||
 | 
					{{ $full_text := printf "%s %s" (placeholder "http.error.status_code") (placeholder "http.error.status_text") -}}
 | 
				
			||||||
{{ $host := placeholder "http.request.host" -}}
 | 
					{{ $host := placeholder "http.request.host" -}}
 | 
				
			||||||
{{ $img_url := (printf "https://errors.boba.best/%s.jpg" $code) -}}
 | 
					{{ $img_url := (printf "https://errors.boba.best/%s.jpg" $code) -}}
 | 
				
			||||||
<html>
 | 
					<html>
 | 
				
			||||||
    <head>
 | 
					    <head>
 | 
				
			||||||
        <title>{{ $code }} {{ $text }}</title>
 | 
					        <title>{{ $full_text }}</title>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <meta name="title" content="{{ $code }} {{ $text }}" />
 | 
					        <meta name="title" content="{{ $full_text }}" />
 | 
				
			||||||
        <meta name="description" content="{{ $code }} {{ $text }}" />
 | 
					        <meta name="description" content="{{ $full_text }}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <meta property="og:title" content="{{ $code }} {{ $text }}" />
 | 
					        <meta property="og:title" content="{{ $full_text }}" />
 | 
				
			||||||
        <meta property="og:description" content="{{ $code }} {{ $text }}" />
 | 
					        <meta property="og:description" content="{{ $full_text }}" />
 | 
				
			||||||
        <meta property="og:image" content="{{ $img_url }}"/>
 | 
					        <meta property="og:image" content="{{ $img_url }}"/>
 | 
				
			||||||
        <meta property="og:site_name" content="{{ $host }}" />
 | 
					        <meta property="og:site_name" content="{{ $host }}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <meta name="twitter:card" content="summary"/>
 | 
					        <meta name="twitter:card" content="summary"/>
 | 
				
			||||||
        <meta name="twitter:image" content="{{ $img_url }}"/>
 | 
					        <meta name="twitter:image" content="{{ $img_url }}"/>
 | 
				
			||||||
        <meta name="twitter:title" content="{{ $code }} {{ $text }}" />
 | 
					        <meta name="twitter:title" content="{{ $full_text }}" />
 | 
				
			||||||
        <meta name="twitter:description" content="{{ $code }} {{ $text }}" />
 | 
					        <meta name="twitter:description" content="{{ $full_text }}" />
 | 
				
			||||||
    </head>
 | 
					    </head>
 | 
				
			||||||
    <body bgcolor="black" text="white">
 | 
					    <body bgcolor="black" text="white">
 | 
				
			||||||
        <center>
 | 
					        <center>
 | 
				
			||||||
            <h1>{{ $code }} {{ $text }}</h1>
 | 
					            <h1>{{ $full_text }}</h1>
 | 
				
			||||||
            <img src='{{ $img_url }}' alt="cat" />
 | 
					            <img src='{{ $img_url }}' alt="cat" />
 | 
				
			||||||
        </center>
 | 
					        </center>
 | 
				
			||||||
    </body>
 | 
					    </body>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user