mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Add translation json_query vars to error pages thanks to @l29utp0
This commit is contained in:
@ -21,10 +21,12 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Bad Request.</h3>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($.Bad Request\.)]
|
||||
</h3>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,10 +16,12 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">You look like a robot.</h3>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($.You look like a robot\.)]
|
||||
</h3>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,10 +16,12 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Request Time-out.</h3>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($.Request Time-out\.)]
|
||||
</h3>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,10 +16,12 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Slow down, you look like a robot.</h3>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($."Slow down, you look like a robot.")]
|
||||
</h3>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,10 +16,12 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Internal Server Error, please try again later.</h3>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($."Internal Server Error, please try again later\.")]
|
||||
</h3>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,10 +16,12 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Bad Gateway.</h3>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($.Bad Gateway\.)]
|
||||
</h3>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,11 +16,15 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Service Unavailable.</h3>
|
||||
<p>Sorry, the backend is unreachable or down for essential maintenance. Try again soon!</p>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($.Service Unavailable\.)]
|
||||
</h3>
|
||||
<p>
|
||||
%[var(txn.lang_json),json_query($."Sorry, the backend is unreachable or down for essential maintenance\. Try again soon!")]
|
||||
</p>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -16,11 +16,15 @@ footer{font-size:x-small;margin-top:auto;padding:10px;text-align:center;border-t
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3 class="pt">Gateway Time-out.</h3>
|
||||
<p>Sorry, the backend is unreachable or down for essential maintenance. Try again soon!</p>
|
||||
<h3 class="pt">
|
||||
%[var(txn.lang_json),json_query($.Gateway Time-out\.)]
|
||||
</h3>
|
||||
<p>
|
||||
%[var(txn.lang_json),json_query($."Sorry, the backend is unreachable or down for essential maintenance\. Try again soon!")]
|
||||
</p>
|
||||
<footer>
|
||||
<p>Node: <code>%[env(RAY_ID)]</code></p>
|
||||
<p>Performance & security by <a href="https://basedflare.com" rel="noreferrer noopener" target="_blank">BasedFlare</a></p>
|
||||
<p>%[var(txn.lang_json),json_query($.Performance & security by BasedFlare)]</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user