v0.42.3
This commit is contained in:
1 parent
a75893d428
commit
bfbeedfad7
43 files changed
+5834
-125
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# RustProxy source and documentation maintenance
|
||||
|
||||
Current source version: **0.42.2**. The Cargo package and binary are named `rust-proxy`.
|
||||
Current source version: **0.42.3**. The Cargo package and binary are named `rust-proxy`.
|
||||
|
||||
Before editing, read [README.md](README.md), the relevant [documentation guide](docs/README.md) and the actual code and tests. Historical release experiments are not current specifications. Use the bundled `src/admin/openapi.json` for API routes and payloads; the source implementation is authoritative for runtime behavior.
|
||||
|
||||
|
||||
@@ -2,8 +2,19 @@
|
||||
|
||||
Release history focused on **features, settings, default behavior, compatibility and fixes**. Changes to internal code structure and preliminary performance experiments are intentionally omitted. Historical descriptions reflect their respective releases; consult the current documentation for the settings available in the latest release.
|
||||
|
||||
## 0.42.3 — Offline Cloudflare-style status pages
|
||||
|
||||
- **Reversible bulk Cloudflare switch:** Settings → Pages and Vhost → Pages now provide an accessible on/off switch instead of a one-way action. On applies Cloudflare style to the selected scope; off clears its page/status overrides to the default/inherited responses (and disables Vhost application-error interception). The switch reflects manual edits, does not alter other Vhosts, and requires explicit Save.
|
||||
- **Page design refinement:** render all 13 self-contained templates using the familiar three-node diagnostics band, connecting arrows, green/red status indicators, two explanation columns, and an RP logo replacing the cloud. Remove the old verbose attribution footer and all Cloudflare navigation links; no external assets or fictitious Ray IDs.
|
||||
- **Bulk selection scope:** Settings → Pages can switch direct-IP, unknown-host and all global error pages to Cloudflare style in the current unsaved draft. The Vhost Pages switch also covers response/fallback and enables interception of all supported application-error statuses for that Vhost. HTTP status overrides are preserved when enabling the switch; changes require the normal explicit Save operation. English and Polish labels and documentation were updated.
|
||||
- Added an opt-in **Cloudflare-style (offline)** template for error pages in global Settings → Pages, Vhost Pages and standalone 404 hosts. Existing/default pages and custom HTML are unchanged.
|
||||
- Added 13 pre-generated self-contained static HTML/CSS files under `src/admin/web/cf_page/` for HTTP 200, 400, 401, 403, 404, 408, 410, 413, 429, 500, 502, 503 and 504. Pages are selected with the same compile-time `include_str!` mechanism as RustProxy's current built-in error pages; no new file serving, template engine, runtime disk access, remote CSS/JS, Cloudflare calls or additional executable is required.
|
||||
- Status-specific messages, safer RustProxy-branded gateway labels, per-page no-store/nosniff headers and existing auth-challenge header handling. Existing error-interception boundaries and status codes are preserved. Updated settings/UI, API schema, docs and tests.
|
||||
|
||||
## 0.42.2 — Generic FastCGI/CGI hosting and Apache compatibility
|
||||
|
||||
- **Basic Auth parallel asset fix:** concurrent authenticated requests now wait briefly for one of the two global Argon2 verification slots instead of returning HTTP 503 as soon as both are occupied. Waiting is limited to 64 requests per compiled Vhost with a 3-second maximum; overflow or timeout still fails closed with `Retry-After: 1` and a warning in the application log. Added regression tests for parallel authorized requests and queue exhaustion.
|
||||
|
||||
- **Vhost Web Server / Custom locations hotfix:** the Vhost panel no longer requires a Reverse Proxy backend for local redirects, local HTTP responses, disabled proxy routes or Web Service-only locations. Backend requirement and backend status labels use the same active-source predicate as Rust validation; enabled Reverse Proxy sources still require a backend. Regression checks cover an exact-root redirect, a local response and an active proxy exception.
|
||||
|
||||
- **FastCGI profile editor UI:** wrapped dialog text and responsive profile forms; backend badge and dedicated PHP-FPM-only section. Switching to fcgiwrap/general FastCGI hides php.ini inputs and excludes them from the saved handler configuration. Local Web Service editor follows the selected handler/profile as well; generic labels are used for common limits. The FastCGI guide includes a real Nagios Core migration example without hard-coding application-specific paths.
|
||||
|
||||
Generated
+1
-1
@@ -1914,7 +1914,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rust-proxy"
|
||||
version = "0.42.2"
|
||||
version = "0.42.3"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"arc-swap",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "rust-proxy"
|
||||
version = "0.42.2"
|
||||
version = "0.42.3"
|
||||
edition = "2021"
|
||||
rust-version = "1.99.1"
|
||||
description = "RustProxy - independent reverse proxy with local administration"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
| Delivery | Shared memory and disk cache, `Cache-Status`, purge/ban, gzip/Brotli/Zstandard compression, asset minification |
|
||||
| HTTP policies | Named ACLs, nested conditions, maps, transaction variables and staged header/routing/cache actions; HAProxy subset import and cooperation with existing VCL |
|
||||
| Monitoring | Live dashboard, per-Vhost statistics, live and stored logs, Prometheus exporter, JSON metrics, Grafana and Nagios |
|
||||
| Operations | Configuration history and restore, encrypted backups, Docker discovery, Nginx Proxy Manager import, REST API with OpenAPI |
|
||||
| Operations | Configuration history and restore, encrypted backups, Docker discovery, Nginx Proxy Manager import, REST API with OpenAPI, offline Cloudflare-style error-page templates |
|
||||
|
||||
The complete list is in [Feature list](docs/FEATURES.md); a visual tour is in [Screenshots](docs/SCREENSHOTS.md).
|
||||
|
||||
|
||||
+41
-26
@@ -1,13 +1,13 @@
|
||||
61bf40a0572889dc8b0dda9eae4e93e44b0de9364b3c798106c85700ffb37c23 .dockerignore
|
||||
4140a2956264b44f259e6a37fc00ba02097bbe68b09296e04d3d243c1287129b .env.example
|
||||
0a5e87541831edca0e7164c6469dba01a8a7053ab14dbfb8019c83e4db10edc2 .gitignore
|
||||
3c4638dc086333b8383c5bc77fe967b790075439f5e7a8257e5dd0dd4cf4233b AGENTS.md
|
||||
e9c7db0ca1e5d13bf98e6a9a590ec875d6bb3bc29a92cf84915e2cd61e17881a CHANGELOG.md
|
||||
c28d825120a878684b511b1a6a4f372aced5098ed7b9bec8b318c4ec3fb1cbf4 Cargo.lock
|
||||
3ac98730af5caa39f81d28f4a4f7f14710fbb53d625794dd5704e65afebe4d8e Cargo.toml
|
||||
6aa53a984cdecafd7615613b3f2eae9726144f9bc6e450d7f9efd8295d1db0ef AGENTS.md
|
||||
a07f31d5f04fa548e613e08f061fccdb9ec2d58a2daa6f74b16ac24ca5634d1c CHANGELOG.md
|
||||
1c8f3faa8c8ba133f78ff90e7bc5a590a3a277fff00a7c77babfdc0b5853cd58 Cargo.lock
|
||||
9a0ed20f512cbc753fba1825e7e3934aa4e737c358887de64694e6123b228373 Cargo.toml
|
||||
788745d4f70a0382c6280020afbd48844bb2af65e835a826852143f8132cdeca Dockerfile
|
||||
0d96a4ff68ad6d4b6f1f30f713b18d5184912ba8dd389f86aa7710db079abcb0 LICENSE
|
||||
b3f2518300e2e057eed893b290140da0f01db4c31740fc8e6d69254f4b7ae22b README.md
|
||||
61494937ed179d2d61abd8f5ae3e74a771b91e45af0d633aa0aa884de005ba82 README.md
|
||||
da8311e3db945290666324a2f24bf4521b365272d7ac3f862ded1be993eea646 UPDATE_CHECK.toml
|
||||
120609370b79e192c9a2a72c1706225aa5da06c5806efa26a010b733e120322b build.rs
|
||||
95ececaba550a4bcfd6754073877ba0633373b1e1451521b9ac905a51e8ca6eb deploy/README.md
|
||||
@@ -38,8 +38,8 @@ d3ceee01252c1b7280a7f0d38828def899c3e3baeb62c27c7946fac23918c7f7 docker-agent/m
|
||||
f30c895df3d7f289f3b7c9a73969009ecf91110f59cb247daa242f68e78aa014 docker-agent/server.go
|
||||
20313df0c14a1696d099ed881b159fe854e92538a60548a1729f92babaead881 docker-agent/system.go
|
||||
188b74ec4f58da1b46d86925a67b6a590c92fb4fd7516e8d03d43871bc3b4542 docker-agent/system_test.go
|
||||
0b86005a5b83671b8c1ded181e3bf95194d250b87bb7cfb3b4567567bac9e8ec docs/ACCESS.md
|
||||
6f1d77e529f8f4d837e76a2feaa8eb4e47a4646c2903d598651217f679266a98 docs/API.md
|
||||
ab697cb3d7a9b2fb2be410d801e74e1b50b8103e29318ccf9def1c0c7ccfe160 docs/ACCESS.md
|
||||
4359b18e07491d3388a8797633d18e3f2e1c4f3e7300850adc8eee048d66dd5b docs/API.md
|
||||
728b15b9825f547f34c4121219784798dd046fbbdd72ece8906d0cd77e8efc64 docs/BACKUP.md
|
||||
bfe96dd91dfc6e07918a662d98b036f12ceb011a5aa8381b3778bd0c964b19ab docs/CACHE.md
|
||||
51d34823d139ff3b0b8e1cf1a31850746be5ed7da847a2cca51be36fd5f7733a docs/CACHE_TEMPLATE_LIBRARY.md
|
||||
@@ -48,8 +48,9 @@ bfe96dd91dfc6e07918a662d98b036f12ceb011a5aa8381b3778bd0c964b19ab docs/CACHE.md
|
||||
2cede323fe2767100258b5e1d3e3a8b362e2a91acf2b0ee61090c4a2db97d952 docs/CUSTOM_LOCATIONS.md
|
||||
16d4510e38d43c3bbde9b7dab7af3aeb0cb837dc2f1956cfaad7a9a11bea3bfc docs/DASHBOARD.md
|
||||
53cb0ce7db5ce25e4c2381de3a6e875d212deeed08861da63050de6c51a442bd docs/DOCKER_DISCOVERY.md
|
||||
6e3ee12901fd45691f8becbcf3f1edb749a27b44775ff93035ff594bd8c43388 docs/ERROR_PAGES.md
|
||||
3e729724030fd38d2d77272fddbb6509b7cd971c6bf0e9e3ef234ad69e342156 docs/FASTCGI.md
|
||||
d86b3d705d0cc46182c355deeb3d6e88bcf81d031560aad0eb4cc3dee3b38ec8 docs/FEATURES.md
|
||||
96c4785a7b7f44c050ed664b2ce2e40e4acb9d35e003bdb1b9d811f616290447 docs/FEATURES.md
|
||||
f7bb59821e0d6c45ae2a1789086fd9dab33d91c0ceae784ae68f64bd13b5f496 docs/HEADLESS.md
|
||||
bce732d845c23ad677ae811e7529b9322ab41d04ca808e04087d0f76bccd9309 docs/INSTALL.md
|
||||
3268808766ad66263e465f251dce18cff2e7ede355638dc2b0975870b1a5eead docs/LOAD_BALANCING.md
|
||||
@@ -59,7 +60,7 @@ e5e50be31b3160588599336b1871b07a1e829b202454a67d2dc4e2e754d23eab docs/LOGS.md
|
||||
6d3937088eeb67a9f690d44ebe0b6e660b68116dbf69091ac7816bdc52cec2b6 docs/PERFORMANCE.md
|
||||
a8fdd52601f45a19fd194e27d6ce40aaf57603e88633f8d7040775599494e124 docs/PHP_FPM.md
|
||||
45ce24998bda40e60f34756bef29616114aec9fd5cdd5e1aed692ff2371a3af1 docs/POLICY.md
|
||||
e41b45ff1f980be556d866d7ebb619ab5b455dccf3683519e937e0fb418fbc99 docs/README.md
|
||||
9f729c63a50ea5d6454b6c87ac6d4af00b64fcfb1415dc94621d16ff141b3783 docs/README.md
|
||||
e90842a75459ddb5892334f66a4139d9301280b4d0c17077d211749bd7c90d80 docs/RESPONSE_DELIVERY.md
|
||||
95ab4786792d5920a2e109b7d196838057f24b512a69d713fb5884dc75c84339 docs/SCREENSHOTS.md
|
||||
3a48184b36d225757fc5e2d22c629f89bfe5d4007ff087f0be0ce02a5fb04c28 docs/SECURITY.md
|
||||
@@ -70,8 +71,8 @@ df83d07d7186a5eea60d206dee3cb62b7f6505a066d84141fc53130e2f29760b docs/TROUBLESH
|
||||
53005e1eeb460c960794e2b2f1ab7cfc472c510b14bea3193d25f5f81ba7a1e4 docs/VCL.md
|
||||
4a5534b628c18f4e83c67c6136b60969c884391fbe55cc6bd4f2354711d8ffb7 docs/VCL_SUPPORT_MATRIX.md
|
||||
382e084a1f9e35627ccb43eaf451c18fb6d0cc752397c2178108d71de592a931 docs/VCL_TRAFFIC_COOKBOOK.md
|
||||
a382a9d4b0acb04f1d0a1049f14d30e5e21e1b697012d465e8bfc5e8281a3894 docs/VHOSTS.md
|
||||
bccc92cf4d751c05a4a315076739582fe0f307b54fd4f26273fa4a3caaa1a23d docs/WEB_SERVER.md
|
||||
173488ca17e2280685672154a851e9b5c91e95cf751cedf91df002de5b75c472 docs/VHOSTS.md
|
||||
c806f984ab2da8e711a1b4d144ccac9e4e10dc6ef28c5ba852ed767cd1fcc914 docs/WEB_SERVER.md
|
||||
42822b1c9801bcadb0e2d785cb91883ca2df1da141222631f153030c95f5e197 docs/images/about.png
|
||||
deff2393a987ac7102179dc85b48baf2c4a3882291bb8c7c584d760cc497c631 docs/images/api.png
|
||||
74df8228ea6283004b3e87b4d297e43637371eb4a700b69c7248114c8670777a docs/images/cache.png
|
||||
@@ -137,8 +138,8 @@ e9cbb0224c4a3d23a6019ba557e0cd568c1ad5e1582ff1e335fb7d99b7a1055d integrations/r
|
||||
3f092a9ab80221eddd67be4d1a776acbc6e04c1eb6011b588280c28e83b2582f integrations/routeros-oci-build/build-routeros-oci.sh
|
||||
3f267cafa16006e5456ade78ee2d5fae02cc7ce747839523068ffd8d7c98798a integrations/routeros-oci-build/docker-entrypoint.sh
|
||||
ae2ee2887fcba096d0de25edcc18faa1ffec35759274518db1bf6d6982f7176c langs/README.md
|
||||
a97c2e145a407b016b47bf361741f3c6248499dde74372587025f1e0d04bd8bc langs/en_US.json
|
||||
eae13817e05269807ed19b9e1cb78cdda7e3e65ae43a00c84e787d868e30e175 langs/pl_pl.json
|
||||
5f4e6b84c28f36f28b79750b5f5b09e7827ea1fec7102580912a3982fe5c67d7 langs/en_US.json
|
||||
ab1c4d5fe6d28d1c9c8eec359a6973602ef764e42e9b5192dd5b40489b9eeb2f langs/pl_pl.json
|
||||
38773ed251a8c24af353f4744e498ae2bc7d4151df7927e942c4ac223f6008e1 make_zip.py
|
||||
e830d37dd1f81a4b0aa7d535f5bba69e34e433b0fd99cc8ee0b296786c32379a migrations/0002_admin.sql
|
||||
20112cc82192098b8d602f1c4f7ca08712e9e1366c845fabb92753187c370d35 migrations/0003_certificate_renewals.sql
|
||||
@@ -169,6 +170,7 @@ e4d15aa6aa864d04b9b30aca33826b833632af02ca643f8b23e219a5ea1298dd scripts/deploy
|
||||
f0edbdca3af49cfa8f9c118d3eb0977c99569264dc5d74a85c4610234ea1fe88 scripts/deploy/deploy_core.py
|
||||
f26297284e0ad9fb4e4317deac24b25de819c10d04fed551134ddb6debc41837 scripts/deploy/deploy_runtime.py
|
||||
a59587ce8ad41b1bbb431356b58398f9c8ff7cb96a613a91752e907a70e10c2e scripts/deploy/upgrade.py
|
||||
99cadfdf960c63ca152cb6136e7a906e3a8a3b9cee006e401d6fb10469375cbe scripts/generate_cf_pages.py
|
||||
2cc658faaa610b21b48942c59b955525539ad4503fd60f2a49c7e626a22faaff scripts/migration/migrate_npm.py
|
||||
a459d95bbb0076f33ade8b273b813308167f9d8d45242b309a2d18320ca0093c scripts/migration/migrate_npm_api.py
|
||||
4c905a387f210c30fbf12a7738676fd39819bc96bc4a272da1db5f18a2d3013e scripts/migration/migrate_npm_core.py
|
||||
@@ -177,7 +179,6 @@ be88ca2163d84913e0d9ee97f95d3217d4a92fc7df122927336deae5f8fcfb3d scripts/prefli
|
||||
2a95ee85848d347b419dcc2c3a1c65b62d491081a554f5fb50623770a5c15b80 scripts/runtime/acme_provider.py
|
||||
e69813fb1d3a4cdcfb7243964cc323fc21a603087bf2e84188fa42b9d3cee4b5 scripts/runtime/acme_rfc2136.py
|
||||
91c883cfdce94c8c22c98749f611317f538a112d29be4f3fb1fa460b8f29ceaa scripts/start_stream_backends.sh
|
||||
01f0df9510163760d41d2e475b5fd00d1084cb2b2aff835f2abdef728b32ad02 scripts/test_vhost_source.js
|
||||
22e880e98c7b9d700c7a4c02b9b1d543e5dbd1f4ecdca42813a1083165b32a19 scripts/version.py
|
||||
78efae6c43732c0f5527d467bf07d1f890da361925416c89b58bc449d852fc2b src/acl.rs
|
||||
f097cce1f831e01b68688eb60c1b6393413131e6543c4627f3cedd9ef706193b src/acl/dynamic/mod.rs
|
||||
@@ -205,7 +206,7 @@ f73678bfa4c4f92779cf4e8ae2feb37419de320fb1b53111c982539d5761dbcf src/admin/aler
|
||||
11f1501574e4042fab7a97f18a19c8a69856e157933a56baaf4c7cc9d2da9a8c src/admin/config_sections.rs
|
||||
c51f725075b5c4fc3fb7fb8b8b5f73987bff698a400e8950e968068b97a77631 src/admin/dashboard_presets.rs
|
||||
aae1ca0e70d987830bd63948d431f54302083148177c1b551565be12df7fe771 src/admin/documentation.rs
|
||||
ea34f2681a8077b7630dba9c35bc9e0f3711c5d5027c2803c44f5d84a0b3e2cb src/admin/documentation/documents.rs
|
||||
9b5f1da460768ec06dab890ffcdc41382cf9b4f9460897c99e36c66fff4a79a5 src/admin/documentation/documents.rs
|
||||
f9b2c8fe62cc92d7693e46145b2543b12dd6d4943fe2d52c67ed6958d4af83de src/admin/documentation/tests.rs
|
||||
1ce779b84aa8f47bdb3c34f83593c1f2f06d2235f0319847096cfcd035434168 src/admin/file_log_search.rs
|
||||
2805c7d1c08fed6a54711b8b5d51078ba8c2daecae431b6c7c39fe0345b6cecc src/admin/file_logs.rs
|
||||
@@ -213,7 +214,7 @@ f9b2c8fe62cc92d7693e46145b2543b12dd6d4943fe2d52c67ed6958d4af83de src/admin/docu
|
||||
e2253599b5e39510946729920d240711403a3889cc495eb49824296228f1d080 src/admin/file_logs_query.rs
|
||||
1594c8666991c1d07487a6a718211ef404cf49114721960f7e119bb7f605e3d2 src/admin/logging_api.rs
|
||||
781fd5f176dd8f2372f75bd90edcf160708e2d0a8d6a115ba4b283c0cd49eb2d src/admin/mod.rs
|
||||
321e1b3a1a501db774485724f2b7443081054e65f789ccee0ae35c71a9422f16 src/admin/openapi.json
|
||||
811f04d59aa39d9221da412c857ccc602b3824f183a6c5c9add8af1c6191d72e src/admin/openapi.json
|
||||
9f8842cdec27d703d1795dd6eb37d9420e9f5a2e56a0df93278c92bace5d1f4c src/admin/operations.rs
|
||||
257d93a29d0bda96462bcf695aba8d0ec0f9412c379e066ec46ae8ee034e3a53 src/admin/panel_assets.rs
|
||||
f5127855c2994d052678865df36d703b74f4a0afc633daf7718b10da18d26e37 src/admin/panel_content.rs
|
||||
@@ -267,8 +268,22 @@ b7ead49224a4ec67181d3f24f9d9634bd6d76756f826a4d5d993300637d1d8f3 src/admin/web/
|
||||
ba22ff211f408052aee0aa75a5a52734b1c257247e7112972aff75a9646faf22 src/admin/web/cache-panel.js
|
||||
433f5ccf0a4df1c4452f746f7b2f351f6712ee73873cb07204638c205e4f2c88 src/admin/web/cache-rules.js
|
||||
6288b0a8228d828ac2e2535ace2d1aefd1c04011e789eb97f7279129874ac35c src/admin/web/certificate-api.js
|
||||
8d34215c30c2969aa89b9e0e89d3d2cafcae2cab0025b08d342ef074a74ec8bc src/admin/web/cf_page/README.md
|
||||
c98e5545fc5e64eb7d0ca41424abf015803aa4c682bfe2fb6a892d002ae18fd3 src/admin/web/cf_page/error_200.html
|
||||
58546965228b4443d97502b1920a7ad2e27e247fa8145857a8cf87171930f484 src/admin/web/cf_page/error_400.html
|
||||
3c1fb632fc0ddb4aa2b1cf8a534e74d86290ca9ad9a3731e667f98865dd37945 src/admin/web/cf_page/error_401.html
|
||||
525443803b238f5310abd172ec91dbac3e183dbc63f0b8847da964031805c14f src/admin/web/cf_page/error_403.html
|
||||
502868b3908809464f9361edca574bef99aad7fbba63e46c5a67c6416732ca22 src/admin/web/cf_page/error_404.html
|
||||
5d279a39314e53b1c814c60fb119032c3d4636415361b304f3964725c20b20cb src/admin/web/cf_page/error_408.html
|
||||
c62b1dc1e8a0571fb3ea7b6bc403c948ad0c7f7c6773fca8f9430c8279d24a1f src/admin/web/cf_page/error_410.html
|
||||
69bee85a2508ef531dd88e6b9ea9e4945df0d0e33d748e49be3a794074f774ce src/admin/web/cf_page/error_413.html
|
||||
66f47a689506e248cf0f414d2bc2de93231a038680bf8a44a5ec4a72b326ca7e src/admin/web/cf_page/error_429.html
|
||||
d027603a94a370b57d787cb086a7711abba1a16cd6dd6d9e4e4f3dcd3b48cbfa src/admin/web/cf_page/error_500.html
|
||||
18c85261284721921d8e24db1bdda7282b7a567eabd34b93039ea5210792d700 src/admin/web/cf_page/error_502.html
|
||||
1746db4b9a4c69b4f8a371585a71992082ecb9a68f9141f085f8bff66b7bc04c src/admin/web/cf_page/error_503.html
|
||||
cf4802aa6066dd17a8ac73012d2ade614965bfed55c35257091c1396368b3e75 src/admin/web/cf_page/error_504.html
|
||||
c2912a5e218896177776d4c5920e240092a3de66f9a4b95c1631796771e0ce3c src/admin/web/css/00-tokens.css
|
||||
7b74fd7837ed42a9334dce8e21bdb03fa00a90f0e396e239ac1fc1dbb71f06b8 src/admin/web/css/10-base.css
|
||||
c7ed598c3f19005971871259ea7ee7cc8a6910a8e0e0d25ad38a6d003951e081 src/admin/web/css/10-base.css
|
||||
9cd9b62ff8cfba47cb180e29ea5f69b8e97c7817dfcfddcb55fc4e08d11a7184 src/admin/web/css/20-shell.css
|
||||
5af483ff7937ff245d8718179dc6001716d2b279f6ce935f5aa0c9fcfa370ab8 src/admin/web/css/30-overview.css
|
||||
2763ff8969567cbd001ba4b5d5b669aea7aec347088ffe7c2b164b82396755d5 src/admin/web/css/40-editors.css
|
||||
@@ -302,13 +317,13 @@ e6c4d91d1542d0a5b47bb8736f9539d43a6713df5a473b635519d5b7eac2eb9c src/admin/web/
|
||||
003d382cc8dd69ad7237679632c04a9389366bb71dd7dca8ee64ee06614aa9a5 src/admin/web/error_auth_provider.html
|
||||
0a5fff35555153f59d4346933030a67b6e1a8768cee7a47cfa2fcf1a2c564f63 src/admin/web/favicon.svg
|
||||
e0f0b302092ced1c84ef7e99864984444f0e9d4e3b7d85e74d3507d566952a7f src/admin/web/file-logs.js
|
||||
85f54ce519140a38e31fb1b3d5974585748d7162f0499aa63703c1db56334b2c src/admin/web/host404.js
|
||||
168edd2122464c5f1004e870f23933c4ded14eb6106dd92cc1e36c2567f6f9c5 src/admin/web/index.html
|
||||
7cf7566485a61d5b88a4742a567f59ec1050735727479fa428378bb79472527e src/admin/web/host404.js
|
||||
278f061b529ad95af3a4a5e7861f4b29c52528bb700187bbd60e394e284649f6 src/admin/web/index.html
|
||||
be9999a001c59630963d60539e860b59999dcf74c5ff0087b12a6fb69b4e7bd2 src/admin/web/integrations.js
|
||||
7a12f020fc587205694978ab41b660e9a80487d413fbf6e34fc525eabc58308f src/admin/web/login-keys.json
|
||||
ac9f667273918e18406df06cb2613c923f50a88897693a03a18f500e22dc6ec2 src/admin/web/login.html
|
||||
c2e5f554810b8e34fb47361fb90a01073a2e332ee26d82e030956fad3ec1f83e src/admin/web/login.js
|
||||
0c6ca054a7eaabaa34c50fde251c114f03c73055f6e44272dee740abbe780984 src/admin/web/management.js
|
||||
732299f1b02da12d9fba047b49fa38351613feb5941141277dfd4e47abba3d0d src/admin/web/management.js
|
||||
1f3d10e389c9c20e6eb019509fa6e82b50c6b43bbf988c1210a4d42bb73985d0 src/admin/web/partials/overview-charts.html
|
||||
bd94e61e051a6bebe0afbda0a21aa36349c2067516b974986765555ed47455cc src/admin/web/partials/overview-metrics.html
|
||||
8bb503677f51362dc3cc9522596affa65c5960ab5e44b1c935cb4abf85505429 src/admin/web/policy-presets.js
|
||||
@@ -363,8 +378,8 @@ ded4f445eec1caacd92fb1546f9eaeba1bc35fd164deb4d3142a64d0e9e261d9 src/balance/mo
|
||||
5f9419176d5b927f8376d39b7dc4a6adf37b975835fedb35d82e7d6a2bb052fd src/balance/pool_selection.rs
|
||||
d789bf40cf9433e2fd16409d112210fe93154588b1ac9bddc9c7f78e1db14426 src/balance/pool_view.rs
|
||||
a361c341932ffd186c0b21356c91ab1fe8043f5020d40798266d15ae896a114e src/balance/tests.rs
|
||||
4cecc5ad1631179afc0c76bffe461fb75efe91f8366d99a58bc8c68f65d492c9 src/basic_auth/mod.rs
|
||||
9a8858b7ff461a4d961ba701ca3ed6eaec15c3f7f05eef8e0e30edc63617605a src/basic_auth/tests.rs
|
||||
c3c23be0df87cf49c85b78c27e18bda4aa92f8d1ba076155e42b51157c805b76 src/basic_auth/mod.rs
|
||||
2e0ad80a3fce45e02e1fc3920c3f49a7af41953fa4b64ceb602a47e9f5508882 src/basic_auth/tests.rs
|
||||
d9c44f9be9e3855c2339d4867c164b35938474b0a970de887d3990f33779b03b src/cache/cache_regression_tests.rs
|
||||
7def03ace07dc38a4806277d75b6ce673d33ddaaf1c4855fa0a3372be1cf9489 src/cache/cold.rs
|
||||
b75ff512a1c6344483e00d2c67578ceea6b5472c279da0246f3622daa68d7e16 src/cache/cold/cleanup.rs
|
||||
@@ -479,13 +494,13 @@ f053cf4391b734ab9e8646caa194fe923b151a591f760558fdd28cd339d659e8 src/metrics/gl
|
||||
31154052757c2bb975b8ce8cad67f3fad7b5132b615a73d5b0d7bf1b5311722b src/metrics/rate_sampling.rs
|
||||
4e71dcbd92d8afe5808eaee693243725e8b6515377de9837fce4623af98b383a src/metrics/vhost/mod.rs
|
||||
bb8507a5329ba320e4af02757f5f37da61db39fec147fcc2a3b76e3fcfd47434 src/metrics/vhost/tests.rs
|
||||
f2a632f9d3d7f9985ff796545263ebe03fbf5e9a5c2e88288e89a700d3af81d3 src/not_found/mod.rs
|
||||
fa2fc6c6987a8356a9da92cade10db62426d8863e9cef3c0d4324c45780c5b33 src/not_found/tests.rs
|
||||
c456b31ddd7a5c209073812b288f2cc150b5cdb0ed9372d4d1a9a84a74d706cd src/not_found/mod.rs
|
||||
78ab02e001d8590ee5c0da5a48558d1c9961673997f1f39109b8dbb2d463ce56 src/not_found/tests.rs
|
||||
c19998732c2d65b464f43d17a58644db5bcf7b4a6dd4c31a65a091c57692a5bb src/oidc/mod.rs
|
||||
c4dbe0f8ded237d45b6a3977bdc7544296e4408996815cae9e28af028419d0b7 src/oidc/tests.rs
|
||||
992f49379e44361d98088d8f8ca1013d62846a54a5a35c089a5e0e1a9488e08d src/oidc/token.rs
|
||||
eb95c68c8639ce3ae658eea3334795cdb5e129fb2ba10955f7dffe06d8909b57 src/pages/mod.rs
|
||||
d09dc18863b0508a5e8d54a5305904170f3e8f12857b7a0d5393a11849541e50 src/pages/tests.rs
|
||||
f000fec66781122f70a7dee93e72c2e9ba33497b0e07d68e200f398b75746a76 src/pages/mod.rs
|
||||
2eecf2089bb5b9491e714c13e8c455664365ac5f941513452371cff27b81eb14 src/pages/tests.rs
|
||||
9840ec5b3786661084fefdced6694f3c099fef1e872e28fab9ef9a5cef29d141 src/policy/compile.rs
|
||||
420d3e1133621a6bab8c15523cbd81712ea4b5d36c1390d52d5ef703164850c9 src/policy/engine.rs
|
||||
12440a52f0a90f0f853f4a1273aef20b4b95137709dcf48345707aeef291df90 src/policy/expression.rs
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ New Vhosts store an explicit `authentication` choice; old Vhosts with only `tiny
|
||||
|
||||
### Existing integrations
|
||||
|
||||
- **Basic Auth:** protect selected Vhosts with configured credentials. Use HTTPS so credentials are not sent over plaintext.
|
||||
- **Basic Auth:** protect selected Vhosts with configured credentials. Use HTTPS so credentials are not sent over plaintext. RustProxy performs memory-hard Argon2 verification for each HTTP request, including static assets. Up to two checks run simultaneously; additional checks wait in a bounded per-Vhost queue (64 queued requests, at most 3 seconds). When the queue is full or the deadline expires, RustProxy returns HTTP 503 with `Retry-After: 1` and logs a warning instead of silently dropping the request. A 401 means missing or invalid credentials, and 429 means too many failed attempts from one IP. If parallel assets fail with 503, inspect `error.log` for `Basic Auth` verification queue warnings rather than changing filesystem permissions or FastCGI sockets.
|
||||
- **Tinyauth:** add a verification URL and an HTTPS login URL. RustProxy makes a bounded, body-free authorization request and can pass specifically allowed identity headers upstream. An origin URL automatically uses `/api/auth/nginx` (or set that path explicitly). This Nginx auth-request integration sends `X-Original-URL` and `X-Original-Method`, with a validated `X-Forwarded-For` and `X-Real-IP` for Tinyauth IP ACLs. It does **not** send `X-Forwarded-Host` or `X-Forwarded-URI` to the verifier, avoiding the `conflicting auth module headers` rejection introduced in Tinyauth 5.2.0 while keeping compatibility with earlier versions that implement the Nginx endpoint. Tinyauth has its own timeout and private-backend policy.
|
||||
- **Provider-neutral gateway error pages:** One embedded `src/admin/web/error_auth_provider.html` template renders a self-contained HTML page for **Tinyauth, Authelia, authentik, and future providers**, using only the safe provider display name and the failure category. It replaces the three vendor-specific `error_tinyauth_*.html` source files while preserving the familiar Tinyauth response titles and statuses. For example: `502 Tinyauth connection error` if its HTTP client cannot reach Tinyauth (DNS/TCP/TLS/transport), `504 Tinyauth timeout` if the auth deadline expires, or `502 Tinyauth verification error` for unexpected verifier status or invalid/oversized data. The page always retains the HTTP error status, `Content-Type: text/html; charset=utf-8`, `Cache-Control: private, no-store` and `X-Content-Type-Options: nosniff`. Backend URLs, protocol errors and identity data are not shown to visitors. All of these cases **deny access** to the protected origin. HTTP `401`/`403` and configured login redirects remain unchanged. These auth-specific pages take precedence over custom Vhost/general HTTP error pages so the failure remains distinguishable. The generic failure marker also protects Basic Auth denials and provider login redirects from being replaced by Vhost pages. HTTPS-verifier transport errors are classified as connection failures, truncated/oversized/invalid verifier responses as verification failures, and verification deadlines as timeouts.
|
||||
- Point the verifier URL **directly** at the private Tinyauth service (for example `http://tinyauth:3000/api/auth/nginx`), rather than routing it through a second public proxy that might inject conflicting headers. Do not disable Tinyauth's header-spoofing protections. Confirm that Tinyauth trusts only the actual RustProxy address/network when enabling Tinyauth IP-based access controls (`TINYAUTH_AUTH_TRUSTEDPROXIES`).
|
||||
|
||||
@@ -38,6 +38,8 @@ The current bundled `src/admin/openapi.json` declares these operations (among ot
|
||||
| `GET /api/dashboard-presets` and named preset operations | Saved Overview presets. |
|
||||
| `GET /docs/openapi.json` | Protected machine-readable API specification. |
|
||||
|
||||
The page kind `cloudflare` selects offline, pre-generated HTML/CSS templates in 0.42.3 for global pages, Vhost error pages and 404 hosts; see [Error pages](ERROR_PAGES.md). Existing JSON types and HTTP semantics are unchanged.
|
||||
|
||||
Some paths have additional DELETE/PATCH operations, job-status resources, query parameters or restricted actions. Use OpenAPI for the **actual fields/methods**, not guesses based on a table. `GET /metrics` here is not a replacement for the separate Prometheus exporter.
|
||||
|
||||
The full and live status responses include `metrics.cache_request_outcomes` (`hits`, `misses`, `bypasses`, `other`) and `metrics.completed_success`. Full and live `GET /api/cache` include `request_outcomes`, using the same process counters. These are final client-request classifications; existing `cache` / Cache `metrics` fields remain technical operation counters. Domain outcomes count final requests, while diagnostic reasons can include separate refresh and collapse events.
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
# Error pages: built-in, Cloudflare-style and custom
|
||||
|
||||
From **RustProxy 0.42.3**, administrators can choose a **Cloudflare-style (offline)** page alongside the existing built-in, blank, placeholder and custom HTML responses. This does not turn Cloudflare into an upstream or contact its servers.
|
||||
|
||||
## Where to select a page
|
||||
|
||||
- **Settings → Pages:** select `Cloudflare-style (offline)` for an individual HTTP error code, or for the direct-IP and unknown-host response. **Switch all to Cloudflare style** sets both host-level pages plus all 11 configurable global error codes in the **draft**. Select **Validate, save and apply** to publish. This does not rewrite any per-Vhost overrides.
|
||||
- **Vhost → Pages:** select it for a custom error response or a missing-path fallback. **Switch all to Cloudflare style** changes response, fallback and all 11 supported error codes for **this Vhost**; it also enables application-error interception for those codes so origin 4xx/5xx responses use the selected pages. **Validate, save and apply** saves the Vhost. The button does not change other Vhosts.
|
||||
- **404 hosts → Response type:** choose `Cloudflare-style (offline)` and a supported error status.
|
||||
|
||||
Existing configuration stays unchanged until an administrator explicitly selects a template or uses the new bulk button and saves. A bulk button changes only the current form draft; it does not save automatically. The per-Vhost bulk action intentionally enables interception of supported origin errors for that Vhost. A per-Vhost page takes precedence over the corresponding global error page. Authorization provider responses/redirects remain protected by the existing authentication flow.
|
||||
|
||||
## Supported pages
|
||||
|
||||
The directory `src/admin/web/cf_page/` contains generated HTML files for `200, 400, 401, 403, 404, 408, 410, 413, 429, 500, 502, 503, 504`. Global error replacement supports `400, 401, 403, 404, 408, 413, 429, 500, 502, 503, 504`; other supported statuses apply to local responses/404 hosts where relevant. An unsupported standalone status displays RustProxy's normal built-in response.
|
||||
|
||||
Each page contains the corresponding HTTP code, heading, three-node diagnostic visualization and short next-step advice. The layout follows the familiar light header, gray status band, green/red indicators and two help columns of the [cloudflare-error-page](https://github.com/donlon/cloudflare-error-page) reference project, with a dedicated **RP** mark instead of Cloudflare's cloud. The static HTML contains no Cloudflare links, logos, Ray IDs, fake origin-health checks, or service-ownership claims. Status icons describe the request's handling, not actual live health telemetry. The footer uses minimal **RustProxy** branding instead of a lengthy disclaimer.
|
||||
|
||||
## How it works
|
||||
|
||||
`src/pages/mod.rs` uses `include_str!` references to the pre-generated HTML files, **exactly like the existing `src/admin/web/error_*.html` templates**. HTML and CSS are contained in each file. There are no external fonts, images or scripts, no network requests, no runtime filesystem reads and no newly introduced binary/static-file server.
|
||||
|
||||
Existing status overrides in the form are preserved by the bulk action; choosing a page style does not silently change the HTTP status. The original HTTP status is preserved for intercepted errors. Served pages have `Content-Type: text/html; charset=utf-8`, `Cache-Control: no-store`, and `X-Content-Type-Options: nosniff`. Existing challenge headers (such as `WWW-Authenticate`) are retained. Invalid page combinations are rejected during config validation. Edits to embedded templates require rebuilding RustProxy, while switching the selected page kind is a normal live configuration change.
|
||||
|
||||
## Example JSON
|
||||
|
||||
Select the template for one global HTTP status without changing other error pages:
|
||||
|
||||
```json
|
||||
{
|
||||
"pages": {
|
||||
"errors": {
|
||||
"502": { "kind": "cloudflare", "status": null, "html": "" }
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This is a fragment of configuration, not a complete replacement document. In the panel, set **Settings → Pages → 502 → Cloudflare-style (offline)** and save the section.
|
||||
|
||||
## Verification
|
||||
|
||||
```sh
|
||||
curl -i https://your-host.example/nonexistent
|
||||
```
|
||||
|
||||
Check the actual HTTP status and response markup. For a 502 page, first configure interception or a matching generated error, then confirm the body shows `502 Bad gateway` and `RustProxy`. Re-test `401` with Basic Auth to ensure the challenge header remains. No Cloudflare account or public network access is needed.
|
||||
+1
-1
@@ -17,7 +17,7 @@ RustProxy is a single service that combines a reverse proxy, a static/PHP web se
|
||||
| WebSockets | HTTP/1.1 Upgrade, RFC 8441 (HTTP/2) and RFC 9220 (HTTP/3) Extended CONNECT |
|
||||
| Forwarding headers | `X-Forwarded-*`, `Forwarded`, `X-Real-IP`, trusted proxy ranges, Cloudflare client IP and country |
|
||||
| HTTP policies | Optional global, Vhost, Docker-assignment and location policies: named ACLs, nested AND/OR/NOT, typed samples, maps, transaction variables, header/list operations and explicit request/response stages. Shared editor with 40 searchable scenarios built from 54 rules (39 scenarios at location scope), condition builder, JSON view, strict HAProxy subset importer and draft tester. Application/CORS/cache/security/routing presets show their defaults; recipes requiring setup are added disabled. [VCL cooperation](POLICY.md) preserves legacy precedence. |
|
||||
| Redirects and pages | Redirect hosts, canonical host and HTTPS redirects, 404 hosts, custom error pages and direct-IP pages |
|
||||
| Redirects and pages | Redirect hosts, canonical host and HTTPS redirects, 404 hosts, custom error pages, offline Cloudflare-style static error templates with one-click per-scope selection and direct-IP pages |
|
||||
| TCP/UDP Streams | Layer-4 forwarding with backend pools, health checks, session limits and idle timeouts |
|
||||
|
||||
## Frontends and TLS
|
||||
|
||||
@@ -26,6 +26,7 @@ Guides for operating RustProxy: installation, publishing services, security, cer
|
||||
- [Custom locations](CUSTOM_LOCATIONS.md) — path routing, request conditions (header, cookie, IP, method, country), whole-host rules, rewrites, local responses and error fallbacks.
|
||||
- [Load balancing](LOAD_BALANCING.md) — algorithms, consistent hashing by path/header/cookie/query/IP, location backend groups and the distribution simulator.
|
||||
- [Web Server](WEB_SERVER.md) — static sites, downloads, `try_files`, rewrites, `.htaccess` subset and error pages.
|
||||
- [Error pages](ERROR_PAGES.md) — built-in and offline Cloudflare-style status templates, selection and HTTP semantics.
|
||||
- [FastCGI and CGI](FASTCGI.md) — generic PHP-FPM, fcgiwrap and FastCGI responder configuration; Vhost mounts, scripts, identity, tests.
|
||||
- [PHP-FPM](PHP_FPM.md) — PHP profiles, pool isolation and application examples.
|
||||
- [HTTP transport and TLS](TRANSPORT.md) — HTTPS, HTTP/2, HTTP/3, WebSockets, backend protocols and post-quantum key exchange.
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ The **Redirects** and **404 hosts** editors distinguish host identity/domains fr
|
||||
- WWW controls can direct `www.example.com` to `example.com` or the opposite as supported by the editor; ensure DNS/certificate coverage for both.
|
||||
- Use the dedicated **Redirects** workspace for redirect-only domains. Use **404 hosts** to claim a hostname and return a local not-found page without forwarding.
|
||||
- **Custom locations** may return status/body or redirect for selected paths. **Internal locations** can be used as fallbacks for configured `403/404/500/502/503/504` application responses.
|
||||
- The **Pages** section can replace supported origin error bodies without contacting a second backend. This keeps the response status and disables caching of the replaced error body.
|
||||
- The **Pages** section can replace supported origin error bodies without contacting a second backend. This keeps the response status and disables caching of the replaced error body. Since 0.42.3, it also offers a static, offline **Cloudflare-style** page option; see [Error pages](ERROR_PAGES.md).
|
||||
|
||||
## Safe operating practices
|
||||
|
||||
|
||||
@@ -93,6 +93,8 @@ Missing static files return **HTTP 404 Not Found**, unreadable/blocked paths **4
|
||||
|
||||
These generated HTML responses retain the actual HTTP status, `Content-Type: text/html; charset=utf-8`, `X-Content-Type-Options: nosniff` and `Cache-Control: no-store`; `HEAD` preserves the matching `Content-Length` but sends no body. Explicit application/origin responses are still passed through without forced replacement, subject to the Vhost error interception options below.
|
||||
|
||||
Since 0.42.3, **Settings → Pages** and **Vhost → Pages** can also select a pre-generated offline Cloudflare-style template for individual error statuses. These HTML/CSS files are in `src/admin/web/cf_page/` and are served by the same `include_str!` mechanism as existing built-in pages; nothing is read from disk at request time. See [Error pages](ERROR_PAGES.md) for selection, scope and limitations.
|
||||
|
||||
Vhosts can intercept selected application error bodies in **Pages** and return a configured HTML error page while preserving the status. Internal location `error_fallback` is different: it routes the error to a named internal handler. Error-page replacements are marked uncacheable. Origin-supplied and explicitly configured custom error bodies are preserved unless interception is enabled.
|
||||
|
||||
## Monitoring and issues
|
||||
|
||||
+5
-2
@@ -555,6 +555,7 @@
|
||||
"pageInherit": "Default / inherited",
|
||||
"pageWelcome": "Congratulations page",
|
||||
"pageEmpty": "Empty response",
|
||||
"pageCloudflare": "Cloudflare-style status page (offline)",
|
||||
"pageHtml": "Custom HTML",
|
||||
"pageStatus": "Response status",
|
||||
"pageOriginalStatus": "Original status",
|
||||
@@ -1754,6 +1755,7 @@
|
||||
"vhProxyReadTimeout": "Proxy read timeout (s)",
|
||||
"vhProxySendTimeout": "Proxy send timeout (s)",
|
||||
"vhProxyTimeoutsHelp": "Defaults: connect 10 s, response headers 120 s, read 60 s and send 60 s. Read/send are idle-gap timeouts for streaming bodies.",
|
||||
"notfoundModeCloudflare": "Cloudflare-style status page (offline)",
|
||||
"notfoundModeBuiltin": "Application-style status page",
|
||||
"pageBuiltin": "Built-in status page",
|
||||
"vhOpenBrowser": "Open",
|
||||
@@ -4452,6 +4454,7 @@
|
||||
"webServiceFastCgiHandler": "FastCGI handler",
|
||||
"webServiceFastCgiHandlerHelp": "Choose a backend protocol responder: PHP-FPM executes PHP, fcgiwrap runs CGI programs, and FastCGI responder connects to any compatible application. Configure separate Web Services and Vhost locations for different roots or endpoints.",
|
||||
"webServiceFastCgiScriptPrefix": "Public SCRIPT_NAME prefix",
|
||||
"webServiceFastCgiScriptPrefixHelp": "When a Vhost location strips a URL mount prefix (for example /app/cgi-bin), set it here. RustProxy prepends it to SCRIPT_NAME but leaves SCRIPT_FILENAME under the document root."
|
||||
"webServiceFastCgiScriptPrefixHelp": "When a Vhost location strips a URL mount prefix (for example /app/cgi-bin), set it here. RustProxy prepends it to SCRIPT_NAME but leaves SCRIPT_FILENAME under the document root.",
|
||||
"pageCloudflareAll": "Switch all to Cloudflare style"
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
-2
@@ -555,6 +555,7 @@
|
||||
"pageInherit": "Domyślna / dziedziczona",
|
||||
"pageWelcome": "Strona gratulacyjna",
|
||||
"pageEmpty": "Pusta odpowiedź",
|
||||
"pageCloudflare": "Strona w stylu Cloudflare (offline)",
|
||||
"pageHtml": "Własny HTML",
|
||||
"pageStatus": "Kod odpowiedzi",
|
||||
"pageOriginalStatus": "Oryginalny status",
|
||||
@@ -1754,6 +1755,7 @@
|
||||
"vhProxyReadTimeout": "Proxy read timeout (s)",
|
||||
"vhProxySendTimeout": "Proxy send timeout (s)",
|
||||
"vhProxyTimeoutsHelp": "Domyślnie: połączenie 10 s, nagłówki odpowiedzi 120 s, odczyt 60 s i wysyłanie 60 s. Read/send to timeout bezczynności podczas streamowania body.",
|
||||
"notfoundModeCloudflare": "Strona statusu w stylu Cloudflare (offline)",
|
||||
"notfoundModeBuiltin": "Zaślepka aplikacyjna dla statusu",
|
||||
"pageBuiltin": "Wbudowana strona statusu",
|
||||
"vhOpenBrowser": "Otwórz",
|
||||
@@ -4452,6 +4454,7 @@
|
||||
"webServiceFastCgiHandler": "Tryb FastCGI",
|
||||
"webServiceFastCgiHandlerHelp": "Wybierz backend: PHP-FPM wykonuje PHP, fcgiwrap uruchamia programy CGI, a ogólny responder FastCGI obsługuje zgodne aplikacje. Dla różnych katalogów lub socketów użyj osobnych Web Service i lokalizacji Vhost.",
|
||||
"webServiceFastCgiScriptPrefix": "Publiczny prefiks SCRIPT_NAME",
|
||||
"webServiceFastCgiScriptPrefixHelp": "Jeśli reguła Vhost usuwa prefiks URL (np. /app/cgi-bin), wpisz go tutaj. Prefiks jest dodawany do SCRIPT_NAME; SCRIPT_FILENAME pozostaje w katalogu usługi."
|
||||
"webServiceFastCgiScriptPrefixHelp": "Jeśli reguła Vhost usuwa prefiks URL (np. /app/cgi-bin), wpisz go tutaj. Prefiks jest dodawany do SCRIPT_NAME; SCRIPT_FILENAME pozostaje w katalogu usługi.",
|
||||
"pageCloudflareAll": "Użyj stylu Cloudflare dla wszystkich stron"
|
||||
}
|
||||
}
|
||||
}
|
||||
Executable
+131
@@ -0,0 +1,131 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Generate self-contained RustProxy status pages with classic 3-node error layout.
|
||||
|
||||
Visual reference: donlon/cloudflare-error-page (MIT license), without its
|
||||
Cloudflare logos, links, remote assets or fictitious Cloudflare diagnostics.
|
||||
The generated HTML is consumed using the existing include_str! page mechanism.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
from html import escape
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1] / "src/admin/web/cf_page"
|
||||
|
||||
# Code, title, explanation, advice, RustProxy status label, origin status label,
|
||||
# RustProxy indicator, origin indicator. Indicators describe this request only;
|
||||
# they must never claim to have checked the upstream's health.
|
||||
STATUSES = [
|
||||
(200, "Service ready", "RustProxy received and handled the request.", "You can continue to the requested service.", "Working", "Not checked", "ok", "unknown"),
|
||||
(400, "Bad request", "The request was malformed or could not be understood.", "Check the request and try again.", "Request rejected", "Not contacted", "error", "unknown"),
|
||||
(401, "Authentication required", "This resource requires valid credentials.", "Sign in with an authorized account and retry.", "Authentication required", "Not contacted", "error", "unknown"),
|
||||
(403, "Access forbidden", "Access to the requested resource is not permitted.", "Contact the website administrator if you believe this is an error.", "Access denied", "Not contacted", "error", "unknown"),
|
||||
(404, "Page not found", "The requested resource could not be found.", "Check the address or return to the website homepage.", "Not found", "Not confirmed", "error", "unknown"),
|
||||
(408, "Request timeout", "The request took too long to complete.", "Try again when your connection is stable.", "Timed out", "Not confirmed", "error", "unknown"),
|
||||
(410, "Resource gone", "The requested resource is no longer available.", "Update any saved links to this resource.", "No longer available", "Not contacted", "error", "unknown"),
|
||||
(413, "Content too large", "The request body exceeds the allowed size.", "Reduce the size of the request and try again.", "Request rejected", "Not contacted", "error", "unknown"),
|
||||
(429, "Too many requests", "The request rate limit has been exceeded.", "Wait a moment before trying again.", "Rate limited", "Not contacted", "error", "unknown"),
|
||||
(500, "Internal server error", "An unexpected error occurred while processing this request.", "Try again shortly. If the issue persists, contact the administrator.", "Error", "Not confirmed", "error", "unknown"),
|
||||
(502, "Bad gateway", "The gateway could not obtain a valid response from the upstream service.", "Try again in a few minutes. If the problem continues, contact the administrator.", "Working", "Connection error", "ok", "error"),
|
||||
(503, "Service unavailable", "The service is temporarily unable to handle this request.", "Please try again in a few minutes.", "Temporarily unavailable", "Not confirmed", "error", "unknown"),
|
||||
(504, "Gateway timeout", "The upstream service did not respond in time.", "Try again shortly. If the problem continues, contact the administrator.", "Working", "Timed out", "ok", "error"),
|
||||
]
|
||||
|
||||
CSS = """
|
||||
:root {color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#333}
|
||||
* {box-sizing:border-box}
|
||||
body {margin:0;background:#fff;min-height:100vh;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
|
||||
.container {max-width:1030px;margin:0 auto;padding:0 24px}
|
||||
.intro {padding:54px 0 44px}
|
||||
h1 {font-size:49px;line-height:1.18;font-weight:300;margin:0 0 5px;letter-spacing:-1.1px;color:#313131}
|
||||
.error-code {font-weight:300;color:#8d8d8d}
|
||||
.subtitle {font-weight:300;font-size:25px;line-height:1.4;margin:2px 0;color:#777}
|
||||
.diagnostics-band {background:#f1f1f1;border-top:1px solid #e9e9e9;border-bottom:1px solid #e5e5e5}
|
||||
.diagnostics {display:grid;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr) 76px minmax(0,1fr);align-items:start;padding:39px 0 36px;text-align:center}
|
||||
.node {min-width:0;text-align:center}
|
||||
.symbol {height:107px;position:relative;margin:0 auto 11px;width:142px;max-width:100%;display:flex;align-items:center;justify-content:center}
|
||||
.symbol svg {width:118px;height:100px;display:block;overflow:visible}
|
||||
.symbol .ind {position:absolute;right:10px;bottom:10px;display:grid;place-items:center;border:3px solid #f1f1f1;border-radius:50%;height:37px;width:37px;font-family:Arial,sans-serif;font-size:24px;font-weight:700;line-height:1;color:white;background:#9bca3e}
|
||||
.symbol .ind.error {background:#c93135}
|
||||
.symbol .ind.unknown {background:#aaa;font-weight:500;font-size:26px}
|
||||
.location {font-size:14px;color:#a2a2a2;margin:0;overflow-wrap:anywhere}
|
||||
.node h2 {font-size:21px;font-weight:400;margin:1px 0 0;color:#545454;overflow-wrap:anywhere}
|
||||
.state {font-size:16px;font-weight:500;margin:2px 0 0;color:#8cbb35;overflow-wrap:anywhere}
|
||||
.state.error {color:#c93135}
|
||||
.state.unknown {color:#888}
|
||||
.connector {padding-top:53px;min-width:0;color:#aaa}
|
||||
.connector svg {height:30px;width:100%;display:block;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
|
||||
.help {display:grid;grid-template-columns:1fr 1fr;gap:58px;padding:41px 0 45px}
|
||||
.help h2 {font-size:20px;line-height:1.35;font-weight:400;color:#333;margin:0 0 12px}
|
||||
.help p {font-size:15px;line-height:1.6;margin:0;color:#555}
|
||||
.bottom {border-top:1px solid #e7e7e7;margin-top:7px;padding:22px 0 35px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#999;font-size:12px}
|
||||
.brand {color:#858585;font-weight:600;letter-spacing:.02em}
|
||||
.bottom .signature {font-size:12px}
|
||||
@media(max-width:700px) {
|
||||
.intro {padding:35px 0 30px}h1{font-size:36px;letter-spacing:-.7px}.subtitle{font-size:20px}
|
||||
.diagnostics{grid-template-columns:repeat(3,minmax(0,1fr));padding:25px 0;gap:4px}
|
||||
.connector{display:none}.symbol{height:76px;width:86px;margin-bottom:6px}.symbol svg{width:77px;height:70px}
|
||||
.symbol .ind{width:28px;height:28px;font-size:18px;border-width:2px;right:0;bottom:1px}
|
||||
.symbol .ind.unknown{font-size:21px}.location{font-size:12px}.node h2{font-size:15px}.state{font-size:13px}
|
||||
.help{grid-template-columns:1fr;gap:24px;padding:31px 0}.bottom{flex-wrap:wrap}
|
||||
}
|
||||
@media(max-width:360px){.container{padding:0 14px}.intro{padding-top:27px}h1{font-size:31px}.symbol{width:70px}.symbol svg{width:69px}.node h2{font-size:14px}.state{font-size:12px}}
|
||||
""".strip()
|
||||
|
||||
ICONS = {
|
||||
"browser": '''<svg viewBox="0 0 120 106" aria-hidden="true" focusable="false"><rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa"/><rect x="21" y="33" width="78" height="44" fill="#f1f1f1"/><circle cx="23" cy="24" r="3" fill="#f1f1f1"/><circle cx="34" cy="24" r="3" fill="#f1f1f1"/><path d="M14 31h93" stroke="#f1f1f1" stroke-width="2"/></svg>''',
|
||||
"proxy": '''<svg viewBox="0 0 120 106" aria-hidden="true" focusable="false"><path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa"/><path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1"/><text x="60" y="67" text-anchor="middle" font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text></svg>''',
|
||||
"origin": '''<svg viewBox="0 0 120 106" aria-hidden="true" focusable="false"><rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa"/><rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa"/><circle cx="34" cy="27" r="4" fill="#f1f1f1"/><circle cx="34" cy="60" r="4" fill="#f1f1f1"/><path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round"/><path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round"/></svg>''',
|
||||
}
|
||||
|
||||
|
||||
def node(icon: str, location: str, title: str, state: str, indicator: str) -> str:
|
||||
indicator_glyph = {"ok": "✓", "error": "×", "unknown": "–"}[indicator]
|
||||
return (
|
||||
f'<div class="node"><div class="symbol">{ICONS[icon]}'
|
||||
f'<span class="ind {indicator}" aria-hidden="true">{indicator_glyph}</span></div>'
|
||||
f'<p class="location">{escape(location)}</p><h2>{escape(title)}</h2>'
|
||||
f'<p class="state {indicator}">{escape(state)}</p></div>'
|
||||
)
|
||||
|
||||
|
||||
def make_page(code: int, title: str, happened: str, advice: str, gateway: str, origin: str,
|
||||
gateway_indicator: str, origin_indicator: str) -> str:
|
||||
arrow = '<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30"><path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10"/></svg></div>'
|
||||
return f'''<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error {code}: {escape(title)} | RustProxy</title>
|
||||
<style>{CSS}</style>
|
||||
</head>
|
||||
<body>
|
||||
<header class="container intro"><h1>{escape(title)} <span class="error-code">Error {code}</span></h1><p class="subtitle">Error code {code}</p></header>
|
||||
<section class="diagnostics-band" aria-label="Request status"><div class="container diagnostics">
|
||||
{node('browser', 'You', 'Browser', 'Working', 'ok')}
|
||||
{arrow}
|
||||
{node('proxy', 'Gateway', 'RustProxy', gateway, gateway_indicator)}
|
||||
{arrow}
|
||||
{node('origin', 'Origin', 'Host', origin, origin_indicator)}
|
||||
</div></section>
|
||||
<main class="container"><section class="help" aria-label="Error information">
|
||||
<div><h2>What happened?</h2><p>{escape(happened)}</p></div>
|
||||
<div><h2>What can I do?</h2><p>{escape(advice)}</p></div>
|
||||
</section><footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
'''
|
||||
|
||||
|
||||
def main() -> None:
|
||||
ROOT.mkdir(parents=True, exist_ok=True)
|
||||
for entry in STATUSES:
|
||||
path = ROOT / f"error_{entry[0]}.html"
|
||||
path.write_text(make_page(*entry), encoding="utf-8")
|
||||
print(f"Generated {len(STATUSES)} offline RustProxy-branded status pages")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
+75
-25
@@ -2,8 +2,21 @@ mod tests {
|
||||
use super::*;
|
||||
#[test]
|
||||
fn validates_names_without_accepting_cidr_lookalikes_or_urls() {
|
||||
assert_eq!(hostname("My-Office.DDNS.Example.").unwrap(), "my-office.ddns.example");
|
||||
for bad in ["localhost", "", "*.example.com", "http://ddns.example", "1.2.3.999", "foo..example", "-x.example", "a_.example", "a.example/24"] {
|
||||
assert_eq!(
|
||||
hostname("My-Office.DDNS.Example.").unwrap(),
|
||||
"my-office.ddns.example"
|
||||
);
|
||||
for bad in [
|
||||
"localhost",
|
||||
"",
|
||||
"*.example.com",
|
||||
"http://ddns.example",
|
||||
"1.2.3.999",
|
||||
"foo..example",
|
||||
"-x.example",
|
||||
"a_.example",
|
||||
"a.example/24",
|
||||
] {
|
||||
assert!(hostname(bad).is_err(), "{bad}");
|
||||
}
|
||||
}
|
||||
@@ -11,23 +24,35 @@ mod tests {
|
||||
fn resolver_expiry_fails_closed_and_address_sets_are_exact() {
|
||||
let name = "test-dynamic-unique.example";
|
||||
let ip: IpAddr = "198.51.100.4".parse().unwrap();
|
||||
let entry = Addresses { ips: vec![ip], valid_until: Instant::now() + Duration::from_secs(1) };
|
||||
let entry = Addresses {
|
||||
ips: vec![ip],
|
||||
valid_until: Instant::now() + Duration::from_secs(1),
|
||||
};
|
||||
assert!(entry.valid_until > Instant::now());
|
||||
let mut cache = HashMap::new(); cache.insert(name.to_owned(), entry);
|
||||
let mut cache = HashMap::new();
|
||||
cache.insert(name.to_owned(), entry);
|
||||
CACHE.store(Arc::new(cache));
|
||||
assert!(matches(name, ip));
|
||||
assert!(!matches(name, "198.51.100.5".parse().unwrap()));
|
||||
let mut expired = HashMap::new();
|
||||
expired.insert(name.to_owned(), Addresses {
|
||||
ips: vec![ip], valid_until: Instant::now() - Duration::from_secs(1),
|
||||
});
|
||||
expired.insert(
|
||||
name.to_owned(),
|
||||
Addresses {
|
||||
ips: vec![ip],
|
||||
valid_until: Instant::now() - Duration::from_secs(1),
|
||||
},
|
||||
);
|
||||
CACHE.store(Arc::new(expired));
|
||||
assert!(!matches(name, ip));
|
||||
let new_ip: IpAddr = "2001:db8::8".parse().unwrap();
|
||||
let mut rotated = HashMap::new();
|
||||
rotated.insert(name.to_owned(), Addresses {
|
||||
ips: vec![new_ip], valid_until: Instant::now() + Duration::from_secs(10),
|
||||
});
|
||||
rotated.insert(
|
||||
name.to_owned(),
|
||||
Addresses {
|
||||
ips: vec![new_ip],
|
||||
valid_until: Instant::now() + Duration::from_secs(10),
|
||||
},
|
||||
);
|
||||
CACHE.store(Arc::new(rotated));
|
||||
assert!(matches(name, new_ip));
|
||||
assert!(!matches(name, ip));
|
||||
@@ -37,14 +62,23 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn invalid_dns_answers_do_not_grant_access() {
|
||||
assert!(validate_addresses(Vec::new()).unwrap_err().contains("no A/AAAA"));
|
||||
assert!(validate_addresses(Vec::new())
|
||||
.unwrap_err()
|
||||
.contains("no A/AAAA"));
|
||||
let too_many = (1..=33)
|
||||
.map(|octet| IpAddr::V4(std::net::Ipv4Addr::new(198, 51, 100, octet)))
|
||||
.collect();
|
||||
assert!(validate_addresses(too_many).unwrap_err().contains("limit"));
|
||||
assert!(validate_addresses(vec!["::ffff:198.51.100.42".parse().unwrap()])
|
||||
.unwrap_err().contains("IPv4-mapped"));
|
||||
let valid = validate_addresses(vec!["198.51.100.2".parse().unwrap(), "198.51.100.2".parse().unwrap()]).unwrap();
|
||||
assert!(
|
||||
validate_addresses(vec!["::ffff:198.51.100.42".parse().unwrap()])
|
||||
.unwrap_err()
|
||||
.contains("IPv4-mapped")
|
||||
);
|
||||
let valid = validate_addresses(vec![
|
||||
"198.51.100.2".parse().unwrap(),
|
||||
"198.51.100.2".parse().unwrap(),
|
||||
])
|
||||
.unwrap();
|
||||
assert_eq!(valid.ips.len(), 1);
|
||||
}
|
||||
|
||||
@@ -64,24 +98,40 @@ mod tests {
|
||||
let pending = status_for_name(names[0].clone(), &empty, &empty, Instant::now());
|
||||
assert_eq!(pending.state, "pending");
|
||||
let ip: IpAddr = "192.0.2.10".parse().unwrap();
|
||||
let entries = HashMap::from([(names[0].clone(), Addresses {
|
||||
ips: vec![ip], valid_until: Instant::now() + Duration::from_secs(120),
|
||||
})]);
|
||||
let diagnostics = HashMap::from([(names[0].clone(), DnsDiagnostic {
|
||||
checked_unix_ms: 123, error: None,
|
||||
})]);
|
||||
let entries = HashMap::from([(
|
||||
names[0].clone(),
|
||||
Addresses {
|
||||
ips: vec![ip],
|
||||
valid_until: Instant::now() + Duration::from_secs(120),
|
||||
},
|
||||
)]);
|
||||
let diagnostics = HashMap::from([(
|
||||
names[0].clone(),
|
||||
DnsDiagnostic {
|
||||
checked_unix_ms: 123,
|
||||
error: None,
|
||||
},
|
||||
)]);
|
||||
let resolved = status_for_name(names[0].clone(), &entries, &diagnostics, Instant::now());
|
||||
assert_eq!(resolved.state, "resolved");
|
||||
assert_eq!(resolved.addresses, vec![ip]);
|
||||
let expired = status_for_name(names[0].clone(), &entries, &diagnostics, Instant::now() + Duration::from_secs(121));
|
||||
let expired = status_for_name(
|
||||
names[0].clone(),
|
||||
&entries,
|
||||
&diagnostics,
|
||||
Instant::now() + Duration::from_secs(121),
|
||||
);
|
||||
assert_eq!(expired.state, "expired");
|
||||
assert!(expired.addresses.is_empty());
|
||||
let failure = HashMap::from([(names[0].clone(), DnsDiagnostic {
|
||||
checked_unix_ms: 456, error: Some("NXDOMAIN".into()),
|
||||
})]);
|
||||
let failure = HashMap::from([(
|
||||
names[0].clone(),
|
||||
DnsDiagnostic {
|
||||
checked_unix_ms: 456,
|
||||
error: Some("NXDOMAIN".into()),
|
||||
},
|
||||
)]);
|
||||
let failed = status_for_name(names[0].clone(), &empty, &failure, Instant::now());
|
||||
assert_eq!(failed.state, "failed");
|
||||
assert_eq!(failed.error.as_deref(), Some("NXDOMAIN"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ pub(super) static READER_DOCUMENTS: &[(&str, &str, &str)] = &[
|
||||
reader_doc!("docs/LOAD_BALANCING.md", "guides"),
|
||||
reader_doc!("docs/ACCESS.md", "guides"),
|
||||
reader_doc!("docs/WEB_SERVER.md", "guides"),
|
||||
reader_doc!("docs/ERROR_PAGES.md", "guides"),
|
||||
reader_doc!("docs/PHP_FPM.md", "guides"),
|
||||
reader_doc!("docs/FASTCGI.md", "guides"),
|
||||
reader_doc!("docs/CACHE.md", "guides"),
|
||||
|
||||
+74
-20
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "RustProxy Administration API",
|
||||
"version": "0.42.2",
|
||||
"version": "0.42.3",
|
||||
"description": "Administration API for the active panel origin. Sign in through the panel; the same-origin HttpOnly cookie authenticates all private operations. Mutations also require the exact Origin, X-RustProxy-Request: 1 and a session-bound X-CSRF-Token. Loopback HTTP is the default; Settings can enable HTTPS before using a non-loopback administration bind. This document contains no live configuration or credentials. Object schemas marked extensible are summaries: full configuration validation is authoritative in Rust. The API also permits explicitly scoped GeneralApiBearer tokens on a narrow route allowlist, with RO/RW and source CIDR checks; API-token management and Prometheus-token management are browser-session-only."
|
||||
},
|
||||
"servers": [
|
||||
@@ -3131,9 +3131,12 @@
|
||||
"enum": [
|
||||
"welcome",
|
||||
"empty",
|
||||
"html"
|
||||
"html",
|
||||
"builtin",
|
||||
"cloudflare"
|
||||
],
|
||||
"default": "welcome"
|
||||
"default": "welcome",
|
||||
"description": "Optional offline Cloudflare-style page uses a pre-generated static HTML template with inline CSS; no runtime file reads or third-party requests. Existing built-in and custom HTML options are unchanged. Unsupported local statuses fall back to the normal built-in HTML."
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
@@ -11204,29 +11207,80 @@
|
||||
"get": {
|
||||
"summary": "Live DNS/DDNS ACL resolver diagnostics",
|
||||
"description": "Authenticated read-only snapshot of every DNS ACL name configured globally, in profiles, Vhosts and locations. Status is pending, resolved, failed or expired. Addresses are currently valid A/AAAA records; an error or expired entry grants no access. Check the actual client IP separately. DNS lookups are refreshed every 60 seconds and valid for at most 180 seconds.",
|
||||
"tags": ["Monitoring"],
|
||||
"tags": [
|
||||
"Monitoring"
|
||||
],
|
||||
"operationId": "get_api_acl_dns_status",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Resolver state",
|
||||
"content": {"application/json": {"schema": {
|
||||
"type": "object",
|
||||
"required": ["refresh_seconds", "hostnames"],
|
||||
"properties": {
|
||||
"refresh_seconds": {"type": "integer", "example": 60},
|
||||
"hostnames": {"type": "array", "items": {"type": "object", "required": ["hostname", "state", "addresses"], "properties": {
|
||||
"hostname": {"type": "string"},
|
||||
"state": {"type": "string", "enum": ["pending", "resolved", "failed", "expired"]},
|
||||
"addresses": {"type": "array", "items": {"type": "string"}},
|
||||
"last_checked_unix_ms": {"type": "integer", "nullable": true},
|
||||
"valid_for_seconds": {"type": "integer", "nullable": true},
|
||||
"error": {"type": "string", "nullable": true}
|
||||
}}}
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"refresh_seconds",
|
||||
"hostnames"
|
||||
],
|
||||
"properties": {
|
||||
"refresh_seconds": {
|
||||
"type": "integer",
|
||||
"example": 60
|
||||
},
|
||||
"hostnames": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"hostname",
|
||||
"state",
|
||||
"addresses"
|
||||
],
|
||||
"properties": {
|
||||
"hostname": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"pending",
|
||||
"resolved",
|
||||
"failed",
|
||||
"expired"
|
||||
]
|
||||
},
|
||||
"addresses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"last_checked_unix_ms": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"valid_for_seconds": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}}}
|
||||
}
|
||||
},
|
||||
"401": {"description": "Authentication required"},
|
||||
"403": {"description": "Administrative access forbidden"}
|
||||
"401": {
|
||||
"description": "Authentication required"
|
||||
},
|
||||
"403": {
|
||||
"description": "Administrative access forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Pre-generated Cloudflare-style pages
|
||||
|
||||
These `error_*.html` files are static, self-contained, English-language HTML/CSS pages. They were prepared for RustProxy 0.42.3, using the classic three-stage diagnostic layout of the open-source [cloudflare-error-page](https://github.com/donlon/cloudflare-error-page) project (Anthony Donlon, MIT license). They are adapted and branded for RustProxy with a large "RP" gateway symbol, a gray status band and compact two-column help: no Cloudflare logo, hyperlinks, generated Ray ID, service claims, telemetry or remote assets. The short footer reads "Performance & security by RustProxy".
|
||||
|
||||
- Each template lives in this directory in the source tree; `scripts/generate_cf_pages.py` regenerates them deterministically.
|
||||
- `src/pages/mod.rs` selects the file for the configured HTTP code through the **same `include_str!` pattern used by the existing RustProxy `error_*.html` pages**.
|
||||
- There is **no file I/O on public HTTP requests**, static-file mounting, template engine, JavaScript or external stylesheet.
|
||||
- The browser receives `text/html; charset=utf-8`, `Cache-Control: no-store` and the correct HTTP status; status 401 keeps `WWW-Authenticate` through existing page replacement logic.
|
||||
- This directory is not a public document root and these templates are not routed through the admin file server.
|
||||
- Existing/default error pages remain unchanged unless the `cloudflare` page kind is explicitly selected.
|
||||
|
||||
Before distributing modified templates, review the upstream project's [MIT license](https://github.com/donlon/cloudflare-error-page/blob/main/LICENSE.txt) and its trademark disclaimer. The pages here are an independent RustProxy-branded adaptation, not Cloudflare's official error pages.
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 200: Service ready | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Service ready <span class="error-code">Error 200</span></h1>
|
||||
<p class="subtitle">Error code 200</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not checked</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>RustProxy received and handled the request.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>You can continue to the requested service.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 400: Bad request | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Bad request <span class="error-code">Error 400</span></h1>
|
||||
<p class="subtitle">Error code 400</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Request rejected</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not contacted</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The request was malformed or could not be understood.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Check the request and try again.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 401: Authentication required | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Authentication required <span class="error-code">Error 401</span></h1>
|
||||
<p class="subtitle">Error code 401</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Authentication required</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not contacted</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>This resource requires valid credentials.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Sign in with an authorized account and retry.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 403: Access forbidden | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Access forbidden <span class="error-code">Error 403</span></h1>
|
||||
<p class="subtitle">Error code 403</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Access denied</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not contacted</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>Access to the requested resource is not permitted.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Contact the website administrator if you believe this is an error.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 404: Page not found | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Page not found <span class="error-code">Error 404</span></h1>
|
||||
<p class="subtitle">Error code 404</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Not found</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not confirmed</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The requested resource could not be found.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Check the address or return to the website homepage.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 408: Request timeout | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Request timeout <span class="error-code">Error 408</span></h1>
|
||||
<p class="subtitle">Error code 408</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Timed out</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not confirmed</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The request took too long to complete.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Try again when your connection is stable.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 410: Resource gone | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Resource gone <span class="error-code">Error 410</span></h1>
|
||||
<p class="subtitle">Error code 410</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">No longer available</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not contacted</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The requested resource is no longer available.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Update any saved links to this resource.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 413: Content too large | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Content too large <span class="error-code">Error 413</span></h1>
|
||||
<p class="subtitle">Error code 413</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Request rejected</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not contacted</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The request body exceeds the allowed size.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Reduce the size of the request and try again.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 429: Too many requests | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Too many requests <span class="error-code">Error 429</span></h1>
|
||||
<p class="subtitle">Error code 429</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Rate limited</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not contacted</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The request rate limit has been exceeded.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Wait a moment before trying again.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 500: Internal server error | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Internal server error <span class="error-code">Error 500</span></h1>
|
||||
<p class="subtitle">Error code 500</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Error</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not confirmed</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>An unexpected error occurred while processing this request.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Try again shortly. If the issue persists, contact the administrator.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 502: Bad gateway | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Bad gateway <span class="error-code">Error 502</span></h1>
|
||||
<p class="subtitle">Error code 502</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state error">Connection error</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The gateway could not obtain a valid response from the upstream service.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Try again in a few minutes. If the problem continues, contact the administrator.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 503: Service unavailable | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Service unavailable <span class="error-code">Error 503</span></h1>
|
||||
<p class="subtitle">Error code 503</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state error">Temporarily unavailable</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind unknown" aria-hidden="true">–</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state unknown">Not confirmed</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The service is temporarily unable to handle this request.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Please try again in a few minutes.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,387 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>Error 504: Gateway timeout | RustProxy</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
min-height: 100vh;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1030px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding: 54px 0 44px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 49px;
|
||||
line-height: 1.18;
|
||||
font-weight: 300;
|
||||
margin: 0 0 5px;
|
||||
letter-spacing: -1.1px;
|
||||
color: #313131
|
||||
}
|
||||
|
||||
.error-code {
|
||||
font-weight: 300;
|
||||
color: #8d8d8d
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-weight: 300;
|
||||
font-size: 25px;
|
||||
line-height: 1.4;
|
||||
margin: 2px 0;
|
||||
color: #777
|
||||
}
|
||||
|
||||
.diagnostics-band {
|
||||
background: #f1f1f1;
|
||||
border-top: 1px solid #e9e9e9;
|
||||
border-bottom: 1px solid #e5e5e5
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
padding: 39px 0 36px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.node {
|
||||
min-width: 0;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 107px;
|
||||
position: relative;
|
||||
margin: 0 auto 11px;
|
||||
width: 142px;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 118px;
|
||||
height: 100px;
|
||||
display: block;
|
||||
overflow: visible
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 3px solid #f1f1f1;
|
||||
border-radius: 50%;
|
||||
height: 37px;
|
||||
width: 37px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: white;
|
||||
background: #9bca3e
|
||||
}
|
||||
|
||||
.symbol .ind.error {
|
||||
background: #c93135
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
background: #aaa;
|
||||
font-weight: 500;
|
||||
font-size: 26px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 14px;
|
||||
color: #a2a2a2;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
margin: 1px 0 0;
|
||||
color: #545454;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
margin: 2px 0 0;
|
||||
color: #8cbb35;
|
||||
overflow-wrap: anywhere
|
||||
}
|
||||
|
||||
.state.error {
|
||||
color: #c93135
|
||||
}
|
||||
|
||||
.state.unknown {
|
||||
color: #888
|
||||
}
|
||||
|
||||
.connector {
|
||||
padding-top: 53px;
|
||||
min-width: 0;
|
||||
color: #aaa
|
||||
}
|
||||
|
||||
.connector svg {
|
||||
height: 30px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 4;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round
|
||||
}
|
||||
|
||||
.help {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 58px;
|
||||
padding: 41px 0 45px
|
||||
}
|
||||
|
||||
.help h2 {
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
margin: 0 0 12px
|
||||
}
|
||||
|
||||
.help p {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
color: #555
|
||||
}
|
||||
|
||||
.bottom {
|
||||
border-top: 1px solid #e7e7e7;
|
||||
margin-top: 7px;
|
||||
padding: 22px 0 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
color: #999;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: #858585;
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em
|
||||
}
|
||||
|
||||
.bottom .signature {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
@media(max-width:700px) {
|
||||
.intro {
|
||||
padding: 35px 0 30px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 36px;
|
||||
letter-spacing: -.7px
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
.diagnostics {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
padding: 25px 0;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.connector {
|
||||
display: none
|
||||
}
|
||||
|
||||
.symbol {
|
||||
height: 76px;
|
||||
width: 86px;
|
||||
margin-bottom: 6px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 77px;
|
||||
height: 70px
|
||||
}
|
||||
|
||||
.symbol .ind {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 18px;
|
||||
border-width: 2px;
|
||||
right: 0;
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
.symbol .ind.unknown {
|
||||
font-size: 21px
|
||||
}
|
||||
|
||||
.location {
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.help {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
padding: 31px 0
|
||||
}
|
||||
|
||||
.bottom {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:360px) {
|
||||
.container {
|
||||
padding: 0 14px
|
||||
}
|
||||
|
||||
.intro {
|
||||
padding-top: 27px
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 31px
|
||||
}
|
||||
|
||||
.symbol {
|
||||
width: 70px
|
||||
}
|
||||
|
||||
.symbol svg {
|
||||
width: 69px
|
||||
}
|
||||
|
||||
.node h2 {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 12px
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="container intro">
|
||||
<h1>Gateway timeout <span class="error-code">Error 504</span></h1>
|
||||
<p class="subtitle">Error code 504</p>
|
||||
</header>
|
||||
<section class="diagnostics-band" aria-label="Request status">
|
||||
<div class="container diagnostics">
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="13" y="16" width="94" height="69" rx="4" fill="#aaa" />
|
||||
<rect x="21" y="33" width="78" height="44" fill="#f1f1f1" />
|
||||
<circle cx="23" cy="24" r="3" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="24" r="3" fill="#f1f1f1" />
|
||||
<path d="M14 31h93" stroke="#f1f1f1" stroke-width="2" />
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">You</p>
|
||||
<h2>Browser</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<path d="M60 9 103 33v45L60 101 17 78V33Z" fill="#aaa" />
|
||||
<path d="M60 21 91 39v32L60 88 29 71V39Z" fill="#f1f1f1" /><text x="60" y="67" text-anchor="middle"
|
||||
font-size="37" font-weight="700" font-family="Arial,sans-serif" fill="#888">RP</text>
|
||||
</svg><span class="ind ok" aria-hidden="true">✓</span></div>
|
||||
<p class="location">Gateway</p>
|
||||
<h2>RustProxy</h2>
|
||||
<p class="state ok">Working</p>
|
||||
</div>
|
||||
<div class="connector" aria-hidden="true"><svg viewBox="0 0 100 30">
|
||||
<path d="M8 15h84m-74-10L8 15l10 10M82 5l10 10-10 10" />
|
||||
</svg></div>
|
||||
<div class="node">
|
||||
<div class="symbol"><svg viewBox="0 0 120 106" aria-hidden="true" focusable="false">
|
||||
<rect x="22" y="13" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<rect x="22" y="46" width="76" height="27" rx="4" fill="#aaa" />
|
||||
<circle cx="34" cy="27" r="4" fill="#f1f1f1" />
|
||||
<circle cx="34" cy="60" r="4" fill="#f1f1f1" />
|
||||
<path d="M48 27h38M48 60h38" stroke="#d9d9d9" stroke-width="4" stroke-linecap="round" />
|
||||
<path d="M60 73v14m-21 0h42" stroke="#aaa" stroke-width="7" stroke-linecap="round" />
|
||||
</svg><span class="ind error" aria-hidden="true">×</span></div>
|
||||
<p class="location">Origin</p>
|
||||
<h2>Host</h2>
|
||||
<p class="state error">Timed out</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="container">
|
||||
<section class="help" aria-label="Error information">
|
||||
<div>
|
||||
<h2>What happened?</h2>
|
||||
<p>The upstream service did not respond in time.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>What can I do?</h2>
|
||||
<p>Try again shortly. If the problem continues, contact the administrator.</p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="bottom"><span class="brand">RustProxy</span><span class="signature">Performance & security by
|
||||
RustProxy</span></footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -856,6 +856,39 @@ progress::-moz-progress-bar {
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.page-bulk-actions {
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 9px 13px;
|
||||
min-width: 0;
|
||||
padding: 10px 12px;
|
||||
margin: 8px 0 14px;
|
||||
background: var(--panel2);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--rp-radius-surface, 5px);
|
||||
}
|
||||
|
||||
.page-bulk-actions .page-bulk-switch-label {
|
||||
flex: 0 1 auto;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
margin: 0 !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page-bulk-actions .page-bulk-switch-label span {
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.page-bulk-actions .fine {
|
||||
flex: 1 1 220px;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.pages-errors {
|
||||
margin: 12px 0;
|
||||
}
|
||||
@@ -1668,8 +1701,7 @@ html[data-interface-icons="true"] :is(button, a, summary)>svg.ui-icon {
|
||||
max-width: none;
|
||||
overflow: visible;
|
||||
}
|
||||
/* Shared FastCGI profiles: keep the help text and controls inside the dialog,
|
||||
including at high UI zoom and with long translated labels. */
|
||||
|
||||
#php-fpm-profiles-dialog {
|
||||
width: calc(min(860px, 100vw - 24px) / var(--ui-scale, 1));
|
||||
}
|
||||
@@ -1695,7 +1727,7 @@ html[data-interface-icons="true"] :is(button, a, summary)>svg.ui-icon {
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
|
||||
#php-fpm-profiles-list > .fastcgi-profile-card {
|
||||
#php-fpm-profiles-list>.fastcgi-profile-card {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -1720,7 +1752,7 @@ html[data-interface-icons="true"] :is(button, a, summary)>svg.ui-icon {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#php-fpm-profiles-list details[open] > .fastcgi-profile-summary {
|
||||
#php-fpm-profiles-list details[open]>.fastcgi-profile-summary {
|
||||
margin-bottom: 12px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
@@ -1732,14 +1764,14 @@ html[data-interface-icons="true"] :is(button, a, summary)>svg.ui-icon {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#php-fpm-profiles-list .fastcgi-profile-editor > label {
|
||||
#php-fpm-profiles-list .fastcgi-profile-editor>label {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
grid-row: auto;
|
||||
}
|
||||
|
||||
#php-fpm-profiles-list .fastcgi-profile-editor > label > :is(input, select, textarea) {
|
||||
#php-fpm-profiles-list .fastcgi-profile-editor>label> :is(input, select, textarea) {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
@@ -1764,4 +1796,4 @@ html[data-interface-icons="true"] :is(button, a, summary)>svg.ui-icon {
|
||||
#php-fpm-profiles-list .fastcgi-profile-editor {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,10 +11,12 @@
|
||||
const syncEnabledControl = window.rustProxyEnableControl($("notfound-enabled"));
|
||||
const ERROR_STATUSES = [400, 401, 403, 404, 408, 413, 429, 500, 502, 503, 504];
|
||||
const BUILTIN_STATUSES = [401, 403, 404, 429, 503, 504];
|
||||
const STATUS_NAMES = { 400: "Bad Request", 401: "Unauthorized", 403: "Forbidden", 404: "Not Found", 408: "Request Timeout", 413: "Payload Too Large", 429: "Too Many Requests", 500: "Internal Server Error", 502: "Bad Gateway", 503: "Service Unavailable", 504: "Gateway Timeout" };
|
||||
const CLOUDFLARE_STATUSES = [400, 401, 403, 404, 408, 410, 413, 429, 500, 502, 503, 504];
|
||||
const STATUS_NAMES = { 400: "Bad Request", 401: "Unauthorized", 403: "Forbidden", 404: "Not Found", 408: "Request Timeout", 410: "Gone", 413: "Payload Too Large", 429: "Too Many Requests", 500: "Internal Server Error", 502: "Bad Gateway", 503: "Service Unavailable", 504: "Gateway Timeout" };
|
||||
function populateStatuses(selected = null) {
|
||||
const select = $("notfound-status"); if (!select) return;
|
||||
const codes = $("notfound-mode")?.value === "builtin" ? BUILTIN_STATUSES : ERROR_STATUSES;
|
||||
const kind = $("notfound-mode")?.value;
|
||||
const codes = kind === "builtin" ? BUILTIN_STATUSES : kind === "cloudflare" ? CLOUDFLARE_STATUSES : ERROR_STATUSES;
|
||||
const wanted = Number(selected ?? select.value ?? 404);
|
||||
select.replaceChildren(...codes.map(code => { const node = el("option", `${code} ${STATUS_NAMES[code]}`); node.value = String(code); return node; }));
|
||||
select.value = codes.includes(wanted) ? String(wanted) : "404";
|
||||
@@ -69,7 +71,7 @@
|
||||
function collect() {
|
||||
const id = value("notfound-id"), name = value("notfound-name") || id, hosts = readHosts(), listener_ids = readBindings(), kind = value("notfound-mode"), status = Number(value("notfound-status")), html = $("notfound-html").value;
|
||||
if (!listener_ids.length) throw new Error(t("notfoundListenersRequired"));
|
||||
const allowed = kind === "builtin" ? BUILTIN_STATUSES : ERROR_STATUSES;
|
||||
const allowed = kind === "builtin" ? BUILTIN_STATUSES : kind === "cloudflare" ? CLOUDFLARE_STATUSES : ERROR_STATUSES;
|
||||
if (!Number.isInteger(status) || !allowed.includes(status)) throw new Error(t("notfoundStatusInvalid"));
|
||||
if (kind === "html" && !html.trim()) throw new Error(t("notfoundHtmlRequired"));
|
||||
return { id, name, enabled: yes("notfound-enabled"), http2_enabled: yes("notfound-http2"), http3_enabled: yes("notfound-http3"), frontend: { hosts, listener_ids }, certificate_id: value("notfound-certificate") || null, page: { kind, status, html: kind === "html" ? html : "" } };
|
||||
|
||||
+46
-17
@@ -1103,8 +1103,10 @@
|
||||
<div class="entity-list" id="acl-profile-list"></div>
|
||||
<details id="acl-dns-status" class="acl-profile-attached">
|
||||
<summary data-i18n="aclDnsStatusTitle">DNS/DDNS ACL resolver status</summary>
|
||||
<p class="fine" data-i18n="aclDnsStatusHelp">Shows the addresses currently permitted by DNS ACL rules, not the current visitor IP.</p>
|
||||
<button type="button" class="outline" id="acl-dns-status-refresh" data-i18n="aclDnsStatusRefresh">Refresh DNS status</button>
|
||||
<p class="fine" data-i18n="aclDnsStatusHelp">Shows the addresses currently permitted by
|
||||
DNS ACL rules, not the current visitor IP.</p>
|
||||
<button type="button" class="outline" id="acl-dns-status-refresh"
|
||||
data-i18n="aclDnsStatusRefresh">Refresh DNS status</button>
|
||||
<div id="acl-dns-status-list" class="entity-list" aria-live="polite"></div>
|
||||
</details>
|
||||
</article>
|
||||
@@ -4870,7 +4872,9 @@ curl -sS -D - -o /dev/null \
|
||||
checked /><span data-i18n="webServiceHtaccessRecursive">Scan subdirectories</span></label>
|
||||
<label class="check"><input class="switch" id="web-service-htaccess-strict" type="checkbox" /><span
|
||||
data-i18n="webServiceHtaccessStrict">Strict unsupported-directive mode</span></label>
|
||||
<p class="fine vh-wide" data-i18n="webServiceHtaccessStrictHelp">When Strict is off, unsupported non-security directives are skipped and logged as warnings. Legacy Order/Allow/Deny with all, IP and CIDR are enforced; unsupported access-control rules still block Apply.</p>
|
||||
<p class="fine vh-wide" data-i18n="webServiceHtaccessStrictHelp">When Strict is off, unsupported
|
||||
non-security directives are skipped and logged as warnings. Legacy Order/Allow/Deny with all, IP
|
||||
and CIDR are enforced; unsupported access-control rules still block Apply.</p>
|
||||
<div class="vh-wide"><button class="outline" id="web-service-htaccess-help"
|
||||
data-i18n="webServiceHtaccessDocs" type="button">Compatibility documentation</button></div>
|
||||
<p class="fine vh-wide" data-i18n="webServiceHtaccessHelp">RustProxy compiles a bounded
|
||||
@@ -5021,11 +5025,15 @@ curl -sS -D - -o /dev/null \
|
||||
<option value="php_fpm">PHP-FPM</option>
|
||||
<option value="fcgiwrap">fcgiwrap (CGI)</option>
|
||||
<option value="fastcgi">FastCGI responder</option>
|
||||
</select><small class="fine" data-i18n="webServiceFastCgiHandlerHelp">Select PHP-FPM for PHP, fcgiwrap for CGI programs or FastCGI for compatible responders.</small>
|
||||
</select><small class="fine" data-i18n="webServiceFastCgiHandlerHelp">Select PHP-FPM for
|
||||
PHP, fcgiwrap for CGI programs or FastCGI for compatible responders.</small>
|
||||
</label>
|
||||
<label class="vh-wide"><span data-i18n="webServiceFastCgiScriptPrefix">Public SCRIPT_NAME prefix</span>
|
||||
<label class="vh-wide"><span data-i18n="webServiceFastCgiScriptPrefix">Public SCRIPT_NAME
|
||||
prefix</span>
|
||||
<input id="web-service-php-script-prefix" maxlength="256" placeholder="/app/cgi-bin" />
|
||||
<small class="fine" data-i18n="webServiceFastCgiScriptPrefixHelp">Set the public URL prefix removed by the Vhost path rewrite, for example /app/cgi-bin. Leave empty without a rewrite.</small>
|
||||
<small class="fine" data-i18n="webServiceFastCgiScriptPrefixHelp">Set the public URL
|
||||
prefix removed by the Vhost path rewrite, for example /app/cgi-bin. Leave empty
|
||||
without a rewrite.</small>
|
||||
</label>
|
||||
<label class="vh-wide"><span data-i18n="webServicePhpEndpoint">FastCGI endpoint</span><input
|
||||
id="web-service-php-endpoint" maxlength="512"
|
||||
@@ -5033,9 +5041,10 @@ curl -sS -D - -o /dev/null \
|
||||
data-i18n="webServicePhpEndpointHelp">Unix: unix:/run/php/php-fpm.sock. TCP:
|
||||
tcp:127.0.0.1:9000 or tcp:[::1]:9000. TCP is intentionally limited to loopback
|
||||
addresses.</small></label>
|
||||
<label><span data-i18n="webServicePhpExtensions">Executable extensions (PHP or CGI)</span><input
|
||||
id="web-service-php-extensions" maxlength="512" placeholder="php, phtml" /><small
|
||||
class="fine" data-i18n="phpHintExtensions">Comma-separated extensions without dots
|
||||
<label><span data-i18n="webServicePhpExtensions">Executable extensions (PHP or
|
||||
CGI)</span><input id="web-service-php-extensions" maxlength="512"
|
||||
placeholder="php, phtml" /><small class="fine"
|
||||
data-i18n="phpHintExtensions">Comma-separated extensions without dots
|
||||
(e.g.
|
||||
php, phtml). Only listed types are executed as PHP.</small></label>
|
||||
</div>
|
||||
@@ -5121,7 +5130,8 @@ curl -sS -D - -o /dev/null \
|
||||
data-i18n="webServicePhpCustomParamsHelp">One NAME = value entry per line.
|
||||
Static trusted values only; core CGI, HTTP_* and PHP_* control names are
|
||||
reserved. Example: APP_ENV = production; no variable interpolation.</small></label>
|
||||
<label class="vh-wide fastcgi-php-only-local"><span data-i18n="webServicePhpValues">PHP INI overrides
|
||||
<label class="vh-wide fastcgi-php-only-local"><span data-i18n="webServicePhpValues">PHP INI
|
||||
overrides
|
||||
(PHP_VALUE)</span><textarea id="web-service-php-values" maxlength="65536" rows="6"
|
||||
spellcheck="false"
|
||||
placeholder="memory_limit = 256M upload_max_filesize = 64M post_max_size = 64M"></textarea><small
|
||||
@@ -5130,7 +5140,8 @@ curl -sS -D - -o /dev/null \
|
||||
Examples: memory_limit = 256M, upload_max_filesize = 64M, post_max_size = 64M,
|
||||
max_execution_time = 30. Use PHP_ADMIN_VALUE for operator-only
|
||||
settings.</small></label>
|
||||
<label class="vh-wide fastcgi-php-only-local"><span data-i18n="phpProfileAdminValues">PHP administrator INI
|
||||
<label class="vh-wide fastcgi-php-only-local"><span data-i18n="phpProfileAdminValues">PHP
|
||||
administrator INI
|
||||
overrides
|
||||
(PHP_ADMIN_VALUE)</span><textarea id="web-service-php-admin-values"
|
||||
maxlength="65536" rows="6" spellcheck="false"
|
||||
@@ -5143,7 +5154,11 @@ curl -sS -D - -o /dev/null \
|
||||
<div class="vh-wide form-actions"><button class="outline"
|
||||
data-i18n="webServicePhpDocsButton" id="web-service-php-help" type="button">FastCGI
|
||||
syntax and safety</button></div>
|
||||
<p class="fine vh-wide" data-i18n="webServicePhpHelp">RustProxy connects to PHP-FPM, fcgiwrap or other compatible FastCGI responders. Select executable extensions, configure a Unix or loopback TCP endpoint, and optionally set the public SCRIPT_NAME prefix when Vhost locations strip a URL prefix. Script source is never served statically for protected executable extensions.</p>
|
||||
<p class="fine vh-wide" data-i18n="webServicePhpHelp">RustProxy connects to PHP-FPM,
|
||||
fcgiwrap or other compatible FastCGI responders. Select executable extensions, configure
|
||||
a Unix or loopback TCP endpoint, and optionally set the public SCRIPT_NAME prefix when
|
||||
Vhost locations strip a URL prefix. Script source is never served statically for
|
||||
protected executable extensions.</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@@ -5179,7 +5194,8 @@ curl -sS -D - -o /dev/null \
|
||||
<button type="button" class="outline" id="php-fpm-profiles-close" data-i18n="close">Close</button>
|
||||
</div>
|
||||
<div class="card location-help-content">
|
||||
<p class="fine php-profiles-description" data-i18n="phpProfileDescription">Expand a profile to edit it. Changes are saved immediately
|
||||
<p class="fine php-profiles-description" data-i18n="phpProfileDescription">Expand a profile to edit it.
|
||||
Changes are saved immediately
|
||||
and shared by every attached Web Service.</p>
|
||||
<div id="php-fpm-profiles-list"></div>
|
||||
<button type="button" class="outline" id="php-fpm-profile-add" data-i18n="phpProfileAdd">Add
|
||||
@@ -5199,9 +5215,11 @@ curl -sS -D - -o /dev/null \
|
||||
Apache runtime. Supported directives are compiled into RustProxy Web Server rules.</p>
|
||||
<h3 data-i18n="webServiceHtaccessDocsSupportedTitle">Supported subset</h3>
|
||||
<p><code>RewriteEngine</code>, <code>RewriteBase</code>, <code>RewriteCond</code>, <code>RewriteRule</code>,
|
||||
<code>DirectoryIndex</code>, <code>AcceptPathInfo On/Off/Default</code>, <code>Options +/-Indexes</code>, <code>AddType</code>,
|
||||
<code>DirectoryIndex</code>, <code>AcceptPathInfo On/Off/Default</code>,
|
||||
<code>Options +/-Indexes</code>, <code>AddType</code>,
|
||||
<code>AddHandler</code> (PHP extensions), <code>Header set/add/unset</code>, <code>ExpiresActive</code>,
|
||||
<code>ExpiresDefault</code>, <code>ExpiresByType</code>, <code>Redirect/RedirectMatch</code>, <code>ErrorDocument (local URL)</code>, <code>Require all granted/denied</code>.
|
||||
<code>ExpiresDefault</code>, <code>ExpiresByType</code>, <code>Redirect/RedirectMatch</code>,
|
||||
<code>ErrorDocument (local URL)</code>, <code>Require all granted/denied</code>.
|
||||
</p>
|
||||
<h3 data-i18n="webServiceHtaccessDocsRewriteTitle">Rewrite compatibility</h3>
|
||||
<p data-i18n="webServiceHtaccessDocsRewrite">Rewrite conditions support REQUEST_FILENAME file tests (-f, -d,
|
||||
@@ -5213,13 +5231,22 @@ RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]</code></pre>
|
||||
<h3 data-i18n="webServiceHtaccessDocsPhpTitle">PHP-FPM</h3>
|
||||
<p data-i18n="webServiceHtaccessDocsPhp">.htaccess may add PHP extensions with AddHandler. AcceptPathInfo On enables PHP script/path suffix routing and Off disables it, overriding the Web Service PATH_INFO switch. The PHP-FPM endpoint, timeouts and concurrency remain controlled by the Web Service PHP-FPM tab. The unchanged default index list also tries index.php last when PHP-FPM for .php is enabled. Apache SetHandler proxy socket syntax is intentionally not accepted.</p>
|
||||
<p data-i18n="webServiceHtaccessDocsPhp">.htaccess may add PHP extensions with AddHandler. AcceptPathInfo On
|
||||
enables PHP script/path suffix routing and Off disables it, overriding the Web Service PATH_INFO switch.
|
||||
The PHP-FPM endpoint, timeouts and concurrency remain controlled by the Web Service PHP-FPM tab. The
|
||||
unchanged default index list also tries index.php last when PHP-FPM for .php is enabled. Apache
|
||||
SetHandler proxy socket syntax is intentionally not accepted.</p>
|
||||
<h3 data-i18n="webServiceHtaccessDocsReloadTitle">Loading and limits</h3>
|
||||
<p data-i18n="webServiceHtaccessDocsReload">Files are read and compiled on Validate, save and apply.
|
||||
RustProxy does not parse .htaccess per request. Re-apply after changing a file. The scan is bounded to
|
||||
128 files, depth 16, 128 KiB per file and 1 MiB total.</p>
|
||||
<h3 data-i18n="webServiceHtaccessDocsUnsupportedTitle">Not Apache-complete</h3>
|
||||
<p data-i18n="webServiceHtaccessDocsUnsupported">Only local ErrorDocument URLs are supported (GET/HEAD); custom literal/external error documents, SetEnvIf, FallbackResource, Options FollowSymlinks and Options MultiViews are not implemented. Order/Allow/Deny with all, IP or CIDR (IPv4/IPv6) and Files/FilesMatch access rules are enforced. Unsupported authentication/authorization, host-based access and handler rules still fail closed, even with Strict off. Other unsupported non-security directives are logged and skipped with Strict off. Re-apply the Web Service after .htaccess changes.</p>
|
||||
<p data-i18n="webServiceHtaccessDocsUnsupported">Only local ErrorDocument URLs are supported (GET/HEAD);
|
||||
custom literal/external error documents, SetEnvIf, FallbackResource, Options FollowSymlinks and Options
|
||||
MultiViews are not implemented. Order/Allow/Deny with all, IP or CIDR (IPv4/IPv6) and Files/FilesMatch
|
||||
access rules are enforced. Unsupported authentication/authorization, host-based access and handler rules
|
||||
still fail closed, even with Strict off. Other unsupported non-security directives are logged and
|
||||
skipped with Strict off. Re-apply the Web Service after .htaccess changes.</p>
|
||||
<p class="fine" data-i18n="webServiceHtaccessDocsSecurity">Vhost/location ACL, authentication, error pages
|
||||
and response rules still remain authoritative. .htaccess cannot escape the document root, select an
|
||||
arbitrary FastCGI socket or override protected framing headers.</p>
|
||||
@@ -5432,6 +5459,8 @@ log_errors = On</code></pre>
|
||||
<option data-i18n="notfoundModeWelcome" value="welcome">RustProxy placeholder</option>
|
||||
<option data-i18n="notfoundModeBuiltin" value="builtin">Application-style status page
|
||||
</option>
|
||||
<option data-i18n="notfoundModeCloudflare" value="cloudflare">Cloudflare-style (offline,
|
||||
RustProxy-branded)</option>
|
||||
<option data-i18n="notfoundModeEmpty" value="empty">Status only / empty</option>
|
||||
<option data-i18n="notfoundModeHtml" value="html">Custom HTML</option>
|
||||
</select></label>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
const row = el("div", undefined, "page-editor"), heading = label("strong", key, "page-label"); row.append(heading);
|
||||
const mode = el("select"), status = el("select"), html = el("textarea"), file = el("input");
|
||||
mode.setAttribute("aria-label", t(key)); mode.className = "page-mode";
|
||||
mode.append(option("", "pageInherit"), option("welcome", "pageWelcome"), option("builtin", "pageBuiltin"), option("empty", "pageEmpty"), option("html", "pageHtml"));
|
||||
mode.append(option("", "pageInherit"), option("welcome", "pageWelcome"), option("builtin", "pageBuiltin"), option("cloudflare", "pageCloudflare"), option("empty", "pageEmpty"), option("html", "pageHtml"));
|
||||
mode.value = value?.kind || "";
|
||||
status.className = "page-status"; status.setAttribute("aria-label", t("pageStatus"));
|
||||
status.append(option("", "pageOriginalStatus"));
|
||||
@@ -21,14 +21,58 @@
|
||||
for (const event of ["change", "input"]) { mode.addEventListener(event, sync); status.addEventListener(event, sync); }
|
||||
file.addEventListener("change", async () => { try { const chosen = file.files[0]; if (!chosen) return; if (chosen.size > 32768) throw new Error(t("pageTooLarge")); html.value = await chosen.text(); html.dispatchEvent(new Event("input", { bubbles: true })); } catch (error) { toast(error.message, true); } finally { file.value = ""; } });
|
||||
row.append(mode, status, source); parent.append(row); sync();
|
||||
return { row, read() { if (!mode.value) return null; const markup = mode.value === "html" ? html.value : ""; if (new TextEncoder().encode(markup).length > 32768) throw new Error(t("pageTooLarge")); return { kind: mode.value, status: status.value ? Number(status.value) : null, html: markup }; } };
|
||||
function setMode(kind) {
|
||||
if (mode.value === kind && (kind || !status.value)) return;
|
||||
mode.value = kind;
|
||||
if (!kind) status.value = "";
|
||||
mode.dispatchEvent(new Event("change", { bubbles: true }));
|
||||
}
|
||||
return {
|
||||
row, setCloudflare: () => setMode("cloudflare"), reset: () => setMode(""),
|
||||
isCloudflare: () => mode.value === "cloudflare",
|
||||
read() { if (!mode.value) return null; const markup = mode.value === "html" ? html.value : ""; if (new TextEncoder().encode(markup).length > 32768) throw new Error(t("pageTooLarge")); return { kind: mode.value, status: status.value ? Number(status.value) : null, html: markup }; }
|
||||
};
|
||||
}
|
||||
function errorsEditor(parent, values = {}) {
|
||||
const details = el("details", undefined, "pages-errors"); details.append(label("summary", "customErrorPages")); parent.append(details);
|
||||
const rows = new Map(); for (const code of codes) { const group = el("div"); details.append(group); const editor = pageEditor(group, "customErrorPages", values[code]); editor.row.querySelector("strong").removeAttribute("data-i18n"); editor.row.querySelector("strong").textContent = statusLabel(code); rows.set(code, editor); }
|
||||
return { read() { return Object.fromEntries([...rows].map(([code, editor]) => [code, editor.read()]).filter(([, page]) => page)); } };
|
||||
return {
|
||||
setAllCloudflare() { for (const editor of rows.values()) editor.setCloudflare(); details.open = true; },
|
||||
resetAll() { for (const editor of rows.values()) editor.reset(); details.open = false; },
|
||||
allCloudflare: () => [...rows.values()].every(editor => editor.isCloudflare()),
|
||||
read() { return Object.fromEntries([...rows].map(([code, editor]) => [code, editor.read()]).filter(([, page]) => page)); }
|
||||
};
|
||||
}
|
||||
function bulkCloudflareSwitch(parent, apply, helpKey) {
|
||||
const wrapper = el("div", undefined, "page-bulk-actions");
|
||||
const control = el("label", undefined, "check page-bulk-switch-label");
|
||||
const toggle = document.createElement("input");
|
||||
toggle.type = "checkbox";
|
||||
toggle.className = "switch";
|
||||
control.append(toggle, label("span", "pageCloudflareAll"));
|
||||
toggle.addEventListener("change", () => apply(toggle.checked));
|
||||
wrapper.append(control, label("span", helpKey, "fine"));
|
||||
parent.append(wrapper);
|
||||
return toggle;
|
||||
}
|
||||
function vhostEditor(parent, values = {}) {
|
||||
let applying = false;
|
||||
const bulk = bulkCloudflareSwitch(parent, checked => {
|
||||
applying = true;
|
||||
try {
|
||||
if (checked) {
|
||||
response.setCloudflare(); fallback.setCloudflare(); errors.setAllCloudflare();
|
||||
enabled.checked = true;
|
||||
statuses.value = codes.join(", ");
|
||||
} else {
|
||||
response.reset(); fallback.reset(); errors.resetAll();
|
||||
enabled.checked = false;
|
||||
statuses.value = "404";
|
||||
}
|
||||
enabled.dispatchEvent(new Event("change", { bubbles: true }));
|
||||
} finally { applying = false; }
|
||||
syncBulk();
|
||||
});
|
||||
const response = pageEditor(parent, "pageStaticHost", values.response), fallback = pageEditor(parent, "pageMissingPath", values.fallback);
|
||||
const interception = el("section", undefined, "php-origin-errors");
|
||||
const toggle = el("label", undefined, "check"), enabled = document.createElement("input");
|
||||
@@ -44,6 +88,15 @@
|
||||
enabled.addEventListener("change", sync); sync();
|
||||
interception.append(toggle, codesLabel, hint); parent.append(interception);
|
||||
const errors = errorsEditor(parent, values.errors);
|
||||
const syncBulk = () => {
|
||||
const selected = statuses.value.split(/[\s,]+/).filter(Boolean);
|
||||
bulk.checked = response.isCloudflare() && fallback.isCloudflare() && errors.allCloudflare()
|
||||
&& enabled.checked && selected.length === codes.length && codes.every(code => selected.includes(String(code)));
|
||||
};
|
||||
const onEditorChange = event => { if (!applying && event.target !== bulk) syncBulk(); };
|
||||
parent.addEventListener("change", onEditorChange);
|
||||
parent.addEventListener("input", onEditorChange);
|
||||
syncBulk();
|
||||
parent.append(label("p", "pagesSafetyHint", "fine"));
|
||||
return {
|
||||
read: () => {
|
||||
@@ -56,8 +109,27 @@
|
||||
}
|
||||
};
|
||||
}
|
||||
let global = null;
|
||||
function render() { if (!envelope || settingsDirty.has("pages-form")) return; const values = envelope.config.pages || {}, parent = $("global-pages-fields"); parent.replaceChildren(); const ip = pageEditor(parent, "pageDirectIp", values.direct_ip), unknown = pageEditor(parent, "pageUnknownHost", values.unknown_host), errors = errorsEditor(parent, values.errors); global = { read: () => ({ direct_ip: ip.read(), unknown_host: unknown.read(), errors: errors.read() }) }; }
|
||||
let global = null, globalSync = null;
|
||||
function render() {
|
||||
if (!envelope || settingsDirty.has("pages-form")) return; const values = envelope.config.pages || {}, parent = $("global-pages-fields");
|
||||
if (globalSync) { parent.removeEventListener("change", globalSync); parent.removeEventListener("input", globalSync); }
|
||||
parent.replaceChildren();
|
||||
let applying = false;
|
||||
const bulk = bulkCloudflareSwitch(parent, checked => {
|
||||
applying = true;
|
||||
try {
|
||||
if (checked) { ip.setCloudflare(); unknown.setCloudflare(); errors.setAllCloudflare(); }
|
||||
else { ip.reset(); unknown.reset(); errors.resetAll(); }
|
||||
} finally { applying = false; }
|
||||
globalSync();
|
||||
});
|
||||
const ip = pageEditor(parent, "pageDirectIp", values.direct_ip), unknown = pageEditor(parent, "pageUnknownHost", values.unknown_host), errors = errorsEditor(parent, values.errors);
|
||||
globalSync = event => { if (!applying && event?.target !== bulk) bulk.checked = ip.isCloudflare() && unknown.isCloudflare() && errors.allCloudflare(); };
|
||||
parent.addEventListener("change", globalSync);
|
||||
parent.addEventListener("input", globalSync);
|
||||
globalSync();
|
||||
global = { read: () => ({ direct_ip: ip.read(), unknown_host: unknown.read(), errors: errors.read() }) };
|
||||
}
|
||||
window.rustProxyPages = { render, vhostEditor };
|
||||
bindSettingsForm("pages-form", next => { next.pages = global.read(); }, "pages");
|
||||
$("settings-security-open").addEventListener("click", () => setPanel("security"));
|
||||
|
||||
+34
-9
@@ -16,6 +16,9 @@ use std::{
|
||||
use tokio::sync::Semaphore;
|
||||
use zeroize::Zeroizing;
|
||||
|
||||
const MAX_WAITING_VERIFICATIONS: usize = 64;
|
||||
const WORKER_WAIT_TIMEOUT: Duration = Duration::from_secs(3);
|
||||
|
||||
fn realm() -> String {
|
||||
"Restricted".into()
|
||||
}
|
||||
@@ -59,6 +62,7 @@ impl std::fmt::Debug for User {
|
||||
pub struct Compiled {
|
||||
settings: Settings,
|
||||
challenge: HeaderValue,
|
||||
waiting: Arc<Semaphore>,
|
||||
}
|
||||
impl Settings {
|
||||
pub fn compile(&self) -> Result<Option<Compiled>> {
|
||||
@@ -98,6 +102,7 @@ impl Settings {
|
||||
Ok(Some(Compiled {
|
||||
settings: self.clone(),
|
||||
challenge: format!("Basic realm=\"{}\", charset=\"UTF-8\"", self.realm).parse()?,
|
||||
waiting: Arc::new(Semaphore::new(MAX_WAITING_VERIFICATIONS)),
|
||||
}))
|
||||
}
|
||||
}
|
||||
@@ -147,18 +152,22 @@ fn denied(status: StatusCode, challenge: Option<&HeaderValue>) -> Response {
|
||||
.headers_mut()
|
||||
.insert("www-authenticate", challenge.clone());
|
||||
}
|
||||
if status == StatusCode::TOO_MANY_REQUESTS {
|
||||
response
|
||||
.headers_mut()
|
||||
.insert("retry-after", HeaderValue::from_static("60"));
|
||||
if status == StatusCode::TOO_MANY_REQUESTS || status == StatusCode::SERVICE_UNAVAILABLE {
|
||||
response.headers_mut().insert(
|
||||
"retry-after",
|
||||
HeaderValue::from_static(if status == StatusCode::TOO_MANY_REQUESTS {
|
||||
"60"
|
||||
} else {
|
||||
"1"
|
||||
}),
|
||||
);
|
||||
}
|
||||
response
|
||||
.extensions_mut()
|
||||
.insert(crate::auth_provider::AuthenticationResponse);
|
||||
response
|
||||
}
|
||||
/// Use only with the Authorization value returned from a successful authorize().
|
||||
/// This is not itself authentication; do not call on untrusted request headers.
|
||||
|
||||
pub(crate) fn verified_username(value: &HeaderValue) -> Option<String> {
|
||||
let mut headers = HeaderMap::new();
|
||||
headers.insert("authorization", value.clone());
|
||||
@@ -224,9 +233,25 @@ impl Compiled {
|
||||
.unwrap_or(&self.settings.users[0])
|
||||
.password_hash
|
||||
.clone();
|
||||
let permit = workers
|
||||
.try_acquire_owned()
|
||||
.map_err(|_| denied(StatusCode::SERVICE_UNAVAILABLE, None))?;
|
||||
|
||||
let waiting = self.waiting.clone().try_acquire_owned().map_err(|_| {
|
||||
tracing::warn!(client_ip = %ip, "Basic Auth verification queue is full");
|
||||
denied(StatusCode::SERVICE_UNAVAILABLE, None)
|
||||
})?;
|
||||
let permit = match tokio::time::timeout(WORKER_WAIT_TIMEOUT, workers.acquire_owned()).await
|
||||
{
|
||||
Ok(Ok(permit)) => permit,
|
||||
Ok(Err(_)) => {
|
||||
tracing::warn!("Basic Auth password verification workers are unavailable");
|
||||
return Err(denied(StatusCode::SERVICE_UNAVAILABLE, None));
|
||||
}
|
||||
Err(_) => {
|
||||
tracing::warn!(client_ip = %ip, wait_ms = WORKER_WAIT_TIMEOUT.as_millis(),
|
||||
"Basic Auth password verification timed out waiting for a worker");
|
||||
return Err(denied(StatusCode::SERVICE_UNAVAILABLE, None));
|
||||
}
|
||||
};
|
||||
drop(waiting);
|
||||
let verified = tokio::task::spawn_blocking(move || {
|
||||
let _permit = permit;
|
||||
PasswordHash::new(&encoded).is_ok()
|
||||
|
||||
@@ -66,6 +66,63 @@ mod tests {
|
||||
assert!(!h.contains_key("remote-user"));
|
||||
}
|
||||
}
|
||||
#[tokio::test]
|
||||
async fn concurrent_browser_assets_wait_instead_of_failing_with_503() {
|
||||
let password = "sufficiently-long-password";
|
||||
let hash = crate::auth::hash_password_offline(password.into()).await.unwrap();
|
||||
let auth = Settings {
|
||||
enabled: true,
|
||||
users: vec![User { username: "alice".into(), password_hash: hash }],
|
||||
..Default::default()
|
||||
}.compile().unwrap().unwrap();
|
||||
let raw = HeaderValue::from_str(&format!(
|
||||
"Basic {}", STANDARD.encode(format!("alice:{password}"))
|
||||
)).unwrap();
|
||||
let headers = {
|
||||
let mut h = HeaderMap::new();
|
||||
h.insert("authorization", raw);
|
||||
h
|
||||
};
|
||||
let (mut h1, mut h2, mut h3, mut h4) =
|
||||
(headers.clone(), headers.clone(), headers.clone(), headers);
|
||||
let workers = Arc::new(Semaphore::new(1));
|
||||
let limits = Limits::default();
|
||||
let ip = "127.0.0.1".parse().unwrap();
|
||||
let (a, b, c, d) = tokio::join!(
|
||||
auth.authorize(&mut h1, true, ip, workers.clone(), &limits),
|
||||
auth.authorize(&mut h2, true, ip, workers.clone(), &limits),
|
||||
auth.authorize(&mut h3, true, ip, workers.clone(), &limits),
|
||||
auth.authorize(&mut h4, true, ip, workers.clone(), &limits),
|
||||
);
|
||||
assert!(a.is_ok() && b.is_ok() && c.is_ok() && d.is_ok(),
|
||||
"parallel authorized asset requests must wait for verification slots");
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn basic_auth_waiting_queue_is_bounded_and_fails_closed() {
|
||||
let password = "sufficiently-long-password";
|
||||
let hash = crate::auth::hash_password_offline(password.into()).await.unwrap();
|
||||
let auth = Settings {
|
||||
enabled: true,
|
||||
users: vec![User { username: "alice".into(), password_hash: hash }],
|
||||
..Default::default()
|
||||
}.compile().unwrap().unwrap();
|
||||
let _occupied = (0..MAX_WAITING_VERIFICATIONS)
|
||||
.map(|_| auth.waiting.clone().try_acquire_owned().unwrap())
|
||||
.collect::<Vec<_>>();
|
||||
let mut headers = HeaderMap::new();
|
||||
headers.insert("authorization", HeaderValue::from_str(&format!(
|
||||
"Basic {}", STANDARD.encode(format!("alice:{password}"))
|
||||
)).unwrap());
|
||||
let response = auth.authorize(
|
||||
&mut headers, true, "127.0.0.1".parse().unwrap(),
|
||||
Arc::new(Semaphore::new(2)), &Limits::default()
|
||||
).await.err().expect("queue exhaustion must deny access");
|
||||
assert_eq!(response.status(), StatusCode::SERVICE_UNAVAILABLE);
|
||||
assert_eq!(response.headers().get("retry-after").unwrap(), "1");
|
||||
assert!(!headers.contains_key("authorization"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bounds_ip_limiter() {
|
||||
let limits = Limits::default();
|
||||
|
||||
@@ -74,10 +74,13 @@ impl Host {
|
||||
}
|
||||
self.page.validate_local_response()?;
|
||||
let status = self.page.status.unwrap_or(default_status());
|
||||
if matches!(self.page.kind, crate::pages::Kind::Builtin) {
|
||||
if matches!(
|
||||
self.page.kind,
|
||||
crate::pages::Kind::Builtin | crate::pages::Kind::Cloudflare
|
||||
) {
|
||||
ensure!(
|
||||
crate::pages::BUILTIN_ERROR_CODES.contains(&status),
|
||||
"application-style 404 host status must use a built-in error template"
|
||||
"templated 404 host status must use an available error template"
|
||||
);
|
||||
} else {
|
||||
ensure!(
|
||||
|
||||
@@ -32,6 +32,21 @@ mod tests {
|
||||
assert!(host(crate::pages::Kind::Html, 418).validate().is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cloudflare_hosts_accept_all_pre_generated_error_codes() {
|
||||
for code in crate::pages::BUILTIN_ERROR_CODES {
|
||||
assert!(
|
||||
host(crate::pages::Kind::Cloudflare, code)
|
||||
.validate()
|
||||
.is_ok(),
|
||||
"{code}"
|
||||
);
|
||||
}
|
||||
assert!(host(crate::pages::Kind::Cloudflare, 418)
|
||||
.validate()
|
||||
.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn application_style_hosts_require_a_bundled_template() {
|
||||
for status in crate::pages::BUILTIN_ERROR_CODES {
|
||||
|
||||
@@ -26,6 +26,26 @@ pub fn builtin_gateway_error(status: StatusCode) -> Option<&'static str> {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn cloudflare_style_page(status: StatusCode) -> Option<&'static str> {
|
||||
match status.as_u16() {
|
||||
200 => Some(include_str!("../admin/web/cf_page/error_200.html")),
|
||||
400 => Some(include_str!("../admin/web/cf_page/error_400.html")),
|
||||
401 => Some(include_str!("../admin/web/cf_page/error_401.html")),
|
||||
403 => Some(include_str!("../admin/web/cf_page/error_403.html")),
|
||||
404 => Some(include_str!("../admin/web/cf_page/error_404.html")),
|
||||
408 => Some(include_str!("../admin/web/cf_page/error_408.html")),
|
||||
410 => Some(include_str!("../admin/web/cf_page/error_410.html")),
|
||||
413 => Some(include_str!("../admin/web/cf_page/error_413.html")),
|
||||
429 => Some(include_str!("../admin/web/cf_page/error_429.html")),
|
||||
500 => Some(include_str!("../admin/web/cf_page/error_500.html")),
|
||||
502 => Some(include_str!("../admin/web/cf_page/error_502.html")),
|
||||
503 => Some(include_str!("../admin/web/cf_page/error_503.html")),
|
||||
504 => Some(include_str!("../admin/web/cf_page/error_504.html")),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn builtin_application_page(status: StatusCode) -> String {
|
||||
if status == StatusCode::OK {
|
||||
return include_str!("../admin/web/status_200.html").to_owned();
|
||||
@@ -67,6 +87,7 @@ pub enum Kind {
|
||||
Empty,
|
||||
Html,
|
||||
Builtin,
|
||||
Cloudflare,
|
||||
}
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
|
||||
#[serde(default, deny_unknown_fields)]
|
||||
@@ -162,6 +183,9 @@ impl Page {
|
||||
Kind::Html => self.html.clone(),
|
||||
Kind::Welcome => include_str!("../admin/web/demo.html").to_owned(),
|
||||
Kind::Builtin => builtin_application_page(status),
|
||||
Kind::Cloudflare => cloudflare_style_page(status)
|
||||
.map(str::to_owned)
|
||||
.unwrap_or_else(|| builtin_application_page(status)),
|
||||
}
|
||||
}
|
||||
pub fn render(&self, default_status: StatusCode) -> Response {
|
||||
|
||||
@@ -57,6 +57,93 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn cloudflare_pages_are_pre_generated_offline_and_keep_http_status() {
|
||||
for code in [
|
||||
200, 400, 401, 403, 404, 408, 410, 413, 429, 500, 502, 503, 504,
|
||||
] {
|
||||
let status = StatusCode::from_u16(code).unwrap();
|
||||
let template = cloudflare_style_page(status).expect("missing Cloudflare template");
|
||||
assert!(
|
||||
template.contains(&format!("<span class=\"error-code\">Error {code}</span>")),
|
||||
"{code}"
|
||||
);
|
||||
assert!(template.contains("class=\"diagnostics-band\""), "{code}");
|
||||
assert!(
|
||||
template.contains("Performance & security by RustProxy"),
|
||||
"{code}"
|
||||
);
|
||||
assert!(!template.contains("Response generated by"), "{code}");
|
||||
assert!(!template.contains("cloudflare.com"), "{code}");
|
||||
assert!(template.contains("<style>"), "{code}");
|
||||
assert!(template.contains("RustProxy"), "{code}");
|
||||
assert!(!template.contains("<script"), "{code}");
|
||||
assert!(!template.contains("<link "), "{code}");
|
||||
assert!(!template.contains("http://"), "{code}");
|
||||
assert!(!template.contains("https://"), "{code}");
|
||||
let page = Page {
|
||||
kind: Kind::Cloudflare,
|
||||
status: Some(code),
|
||||
html: String::new(),
|
||||
};
|
||||
page.validate_local_response().unwrap();
|
||||
let response = page.render(StatusCode::INTERNAL_SERVER_ERROR);
|
||||
assert_eq!(response.status(), status);
|
||||
assert_eq!(
|
||||
response.headers()["content-type"],
|
||||
"text/html; charset=utf-8"
|
||||
);
|
||||
assert_eq!(response.headers()["cache-control"], "no-store");
|
||||
assert_eq!(response.headers()["x-content-type-options"], "nosniff");
|
||||
assert_eq!(
|
||||
response.headers()["content-length"].to_str().unwrap(),
|
||||
template.len().to_string()
|
||||
);
|
||||
assert_eq!(
|
||||
response
|
||||
.into_body()
|
||||
.collect()
|
||||
.await
|
||||
.unwrap()
|
||||
.to_bytes()
|
||||
.as_ref(),
|
||||
template.as_bytes()
|
||||
);
|
||||
}
|
||||
assert!(cloudflare_style_page(StatusCode::IM_A_TEAPOT).is_none());
|
||||
let page = Page {
|
||||
kind: Kind::Cloudflare,
|
||||
status: Some(418),
|
||||
html: String::new(),
|
||||
};
|
||||
let response = page.render(StatusCode::BAD_GATEWAY);
|
||||
let body = response.into_body().collect().await.unwrap().to_bytes();
|
||||
assert!(std::str::from_utf8(&body).unwrap().contains("418 - "));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn cloudflare_error_replacement_preserves_challenge_and_no_store() {
|
||||
let mut response = Response::new(Body::from("old"));
|
||||
*response.status_mut() = StatusCode::UNAUTHORIZED;
|
||||
response.headers_mut().insert(
|
||||
"www-authenticate",
|
||||
HeaderValue::from_static("Basic realm=\"Test\""),
|
||||
);
|
||||
replace_error(
|
||||
&mut response,
|
||||
&Page {
|
||||
kind: Kind::Cloudflare,
|
||||
status: None,
|
||||
html: String::new(),
|
||||
},
|
||||
);
|
||||
assert_eq!(response.status(), StatusCode::UNAUTHORIZED);
|
||||
assert!(response.headers().contains_key("www-authenticate"));
|
||||
assert_eq!(response.headers()["cache-control"], "no-store");
|
||||
let body = response.into_body().collect().await.unwrap().to_bytes();
|
||||
assert!(std::str::from_utf8(&body).unwrap().contains("401</span>"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn builtin_gateway_pages_cover_edge_policy_and_gateway_errors() {
|
||||
assert!(builtin_gateway_error(StatusCode::UNAUTHORIZED)
|
||||
|
||||
Reference in new issue
Block a user