v0.43.1
No files matched your search
@@ -27,7 +27,7 @@ Release history focused on **features, settings, default behavior, compatibility
|
|||||||
- **Settings → Response transformation:** each operation is a small tile with its switch, name and a description below it (the description no longer squeezes in next to the switch).
|
- **Settings → Response transformation:** each operation is a small tile with its switch, name and a description below it (the description no longer squeezes in next to the switch).
|
||||||
- **Editor dialogs (Vhost, Redirect, 404 host, Stream):** the tabs follow the title row directly. The line between them moved: the backend health summary (or "save the vhost to start observing backends") is at the top of the Backend health tab, stream live metrics (sessions, RX/TX, errors) at the top of the Backends tab; the redirect/404 "ID · hostnames" line is dropped because the ID is in the title pill and hostnames are in the Frontend tab.
|
- **Editor dialogs (Vhost, Redirect, 404 host, Stream):** the tabs follow the title row directly. The line between them moved: the backend health summary (or "save the vhost to start observing backends") is at the top of the Backend health tab, stream live metrics (sessions, RX/TX, errors) at the top of the Backends tab; the redirect/404 "ID · hostnames" line is dropped because the ID is in the title pill and hostnames are in the Frontend tab.
|
||||||
- **Certificates redesign:**
|
- **Certificates redesign:**
|
||||||
- **Installed:** summary tiles (certificates by type, expiring soon, assignments, ACME environment) and a searchable list with filters (all / expiring / unassigned). Each row shows state, ID and type, domains, days left with a bar, and how many places use it.
|
- **Installed:** summary tiles (certificates by type, expiring soon, assignments, ACME environment) and a searchable list with filters (all / expiring / assigned / unassigned). Each row shows state, ID and type, domains, days left with a bar, and how many places use it.
|
||||||
- **Expanded row:** "Where it is used" groups vhosts, redirects, 404 hosts and Docker agents with their hostnames, shows whether the certificate covers each hostname, and opens the item's editor. It also shows details, renewal status and files. All previous actions remain: Assign vhosts, Reload, Edit, Delete (blocked while in use).
|
- **Expanded row:** "Where it is used" groups vhosts, redirects, 404 hosts and Docker agents with their hostnames, shows whether the certificate covers each hostname, and opens the item's editor. It also shows details, renewal status and files. All previous actions remain: Assign vhosts, Reload, Edit, Delete (blocked while in use).
|
||||||
- **Assign vhosts dialog:** search; filters for vhosts matching the certificate's domains, assigned vhosts or all; coverage per vhost; the certificate each vhost has now; a summary of the changes before applying. A vhost whose hostnames the certificate does not cover can be selected only if it already accepts a certificate mismatch, the same rule the configuration enforces.
|
- **Assign vhosts dialog:** search; filters for vhosts matching the certificate's domains, assigned vhosts or all; coverage per vhost; the certificate each vhost has now; a summary of the changes before applying. A vhost whose hostnames the certificate does not cover can be selected only if it already accepts a certificate mismatch, the same rule the configuration enforces.
|
||||||
- **Renewal:** one row per ACME certificate with last check → next check → expiry and all actions (check now, dry run, force, enable/disable automatic renewal).
|
- **Renewal:** one row per ACME certificate with last check → next check → expiry and all actions (check now, dry run, force, enable/disable automatic renewal).
|
||||||
@@ -37,6 +37,14 @@ Release history focused on **features, settings, default behavior, compatibility
|
|||||||
- **Overview:** five tiles (requests, errors with share, response/request bytes, mean latency, dropped samples) and a strip with the collected dimensions and a link to the logging settings. Methods, status classes and cache outcomes are 100 % stacked bars with counts and shares instead of donuts. Top paths and top client IPs come with shares and an "other" row.
|
- **Overview:** five tiles (requests, errors with share, response/request bytes, mean latency, dropped samples) and a strip with the collected dimensions and a link to the logging settings. Methods, status classes and cache outcomes are 100 % stacked bars with counts and shares instead of donuts. Top paths and top client IPs come with shares and an "other" row.
|
||||||
- **Clients / Requests / Delivery:** the same lists as before (countries, User-Agents, client IPs, paths, routes, methods, statuses, cache, volume) as ranked lists with shares. Clicking a value still copies it.
|
- **Clients / Requests / Delivery:** the same lists as before (countries, User-Agents, client IPs, paths, routes, methods, statuses, cache, volume) as ranked lists with shares. Clicking a value still copies it.
|
||||||
- **Missing data:** when country collection is off or GeoIP is missing, the panel shows one sentence with a settings link instead of an empty chart.
|
- **Missing data:** when country collection is off or GeoIP is missing, the panel shows one sentence with a settings link instead of an empty chart.
|
||||||
|
- **Certificates — Docker vhosts:** "Where it is used" also lists Docker vhosts that use the certificate (agent · service, hostnames, coverage, a mismatch warning when the agent allows it) and **Open** goes to Docker vhosts with the service found. They are read-only here because a Docker vhost takes its certificate from its agent's allowed list. The usage count, the "Assigned" details line, the Assignments tile (now "· N Docker") and the search include them, and Delete stays blocked while a Docker vhost uses the certificate. `/api/docker` routes now report `certificate_id` and `certificate_mismatch`, chosen by the same rule as the generated Docker vhost. "Docker agents allowing it" → **Open** now goes straight to Settings → Docker agents.
|
||||||
|
- **Certificates — filters:** new **Assigned** filter; clicking the Assignments tile selects it (it used to select **Unassigned**).
|
||||||
|
- **Changing IDs everywhere:** redirects, 404 hosts, streams, Web Services, FastCGI profiles, ACL profiles, listeners, Docker agents and certificates show the ID like Vhosts do (value with **Change**). An existing ID can be renamed while nothing references it; when it is used (for example a Web Service by a vhost, a FastCGI profile by a Web Service, an ACL profile by a vhost or Docker agent, a listener by a vhost/redirect/404 host, a certificate by a vhost, the default certificate or a Docker agent) the field is locked and the panel lists where it is used. Renaming checks for duplicates; renaming a certificate keeps its files. FastCGI profiles, Web Services and ACL profiles could not be renamed before even when unused.
|
||||||
|
- **ACL profiles:** the tab opens with the profile list (search, New profile) instead of an empty editor; a profile opens in a dialog like redirects and 404 hosts, with a prompt before closing unsaved changes. Each profile is a card with its mode, where it is attached, default action, IP/DNS rules and country policy. The "attached to" information now also counts vhosts that use the profile through their security settings (they were shown as unused before, while Delete was still refused by the configuration).
|
||||||
|
- **Default responses:** "Unmatched path" reads "Unmatched path (404 response)".
|
||||||
|
- **Streams:** in the stream editor the Protocol field starts on its own row.
|
||||||
|
- **Documentation reader:** table cells no longer split short words such as "Vhosts" over several lines when a neighbouring column has long text.
|
||||||
|
- **Translations:** ID field texts ("Generated from the name", "Change", lock reasons) follow a language change without reload.
|
||||||
- **Admin panel internals:** vhosts, redirects and 404 hosts expose `edit(id)` so other views (Certificates → Where it is used) can open their editors.
|
- **Admin panel internals:** vhosts, redirects and 404 hosts expose `edit(id)` so other views (Certificates → Where it is used) can open their editors.
|
||||||
- **Debian 13 install/update script:** the build user's home (Cargo registry and Rust toolchain) moved from `/var/tmp/rustproxy-build` to `/var/lib/rustproxy-build`. systemd-tmpfiles removes files older than 30 days from `/var/tmp`, which left the Cargo registry incomplete and broke updates from source with errors such as "can't find `example` bin at `src/bin/example.rs`" (alloc-stdlib). Existing installations are moved automatically, and the extracted registry sources are refreshed before each build.
|
- **Debian 13 install/update script:** the build user's home (Cargo registry and Rust toolchain) moved from `/var/tmp/rustproxy-build` to `/var/lib/rustproxy-build`. systemd-tmpfiles removes files older than 30 days from `/var/tmp`, which left the Cargo registry incomplete and broke updates from source with errors such as "can't find `example` bin at `src/bin/example.rs`" (alloc-stdlib). Existing installations are moved automatically, and the extracted registry sources are refreshed before each build.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
4140a2956264b44f259e6a37fc00ba02097bbe68b09296e04d3d243c1287129b .env.example
|
4140a2956264b44f259e6a37fc00ba02097bbe68b09296e04d3d243c1287129b .env.example
|
||||||
0a5e87541831edca0e7164c6469dba01a8a7053ab14dbfb8019c83e4db10edc2 .gitignore
|
0a5e87541831edca0e7164c6469dba01a8a7053ab14dbfb8019c83e4db10edc2 .gitignore
|
||||||
903ca521af6ef7e54f83dc0b4b0436d116c88f064c36f0317b689b7cce79ab27 AGENTS.md
|
903ca521af6ef7e54f83dc0b4b0436d116c88f064c36f0317b689b7cce79ab27 AGENTS.md
|
||||||
59315eb5b4558c548157d816f0cc4ad65013f8c9a7923c7e4af4ba8838df2c4d CHANGELOG.md
|
5bf17de4f670750a1fea956aacbf7bf9b210b2e7ccdd61bd6462940caeb7bbda CHANGELOG.md
|
||||||
062486dade9ca64ed26710775cc991489c75dc475f624a334c0fa881be526e32 Cargo.lock
|
062486dade9ca64ed26710775cc991489c75dc475f624a334c0fa881be526e32 Cargo.lock
|
||||||
216f2434431a6eb3b717b8cd5a783f5dda4f60f281b96ffd512919218953e6a6 Cargo.toml
|
216f2434431a6eb3b717b8cd5a783f5dda4f60f281b96ffd512919218953e6a6 Cargo.toml
|
||||||
9141c5c5a0923b08ec1e746a7ed10c20ba0a29e67f4302698fa1c2913c6ee66f Dockerfile
|
9141c5c5a0923b08ec1e746a7ed10c20ba0a29e67f4302698fa1c2913c6ee66f Dockerfile
|
||||||
@@ -43,13 +43,13 @@ c4728da70d60d193c5c348d90c7c26ba1756d3459052a10a121f9be69a4dd18a docs/ACCESS.md
|
|||||||
728b15b9825f547f34c4121219784798dd046fbbdd72ece8906d0cd77e8efc64 docs/BACKUP.md
|
728b15b9825f547f34c4121219784798dd046fbbdd72ece8906d0cd77e8efc64 docs/BACKUP.md
|
||||||
bfe96dd91dfc6e07918a662d98b036f12ceb011a5aa8381b3778bd0c964b19ab docs/CACHE.md
|
bfe96dd91dfc6e07918a662d98b036f12ceb011a5aa8381b3778bd0c964b19ab docs/CACHE.md
|
||||||
51d34823d139ff3b0b8e1cf1a31850746be5ed7da847a2cca51be36fd5f7733a docs/CACHE_TEMPLATE_LIBRARY.md
|
51d34823d139ff3b0b8e1cf1a31850746be5ed7da847a2cca51be36fd5f7733a docs/CACHE_TEMPLATE_LIBRARY.md
|
||||||
31285f000cf725d018a926023fe608fec983b959053f7a55e0954b962a8bc20c docs/CERTIFICATES.md
|
6cd6abb39b1867b4c30cdebca90caf992589bebdf7f2076274e912508e60cd2d docs/CERTIFICATES.md
|
||||||
81df6715e2f07617fe0bbb0960c4d5bdac28cf665ce7297fa3768118e6ab28ba docs/CONFIGURATION.md
|
81df6715e2f07617fe0bbb0960c4d5bdac28cf665ce7297fa3768118e6ab28ba docs/CONFIGURATION.md
|
||||||
32b076170bc2669d676ec78a067efec461a0072ddf8f68df1e7655b208e1c9c0 docs/CUSTOM_LOCATIONS.md
|
32b076170bc2669d676ec78a067efec461a0072ddf8f68df1e7655b208e1c9c0 docs/CUSTOM_LOCATIONS.md
|
||||||
7b286e85330fad398fc6f9df1b894e004a42fb33ab7168eb93f87220a3bf5503 docs/DASHBOARD.md
|
7b286e85330fad398fc6f9df1b894e004a42fb33ab7168eb93f87220a3bf5503 docs/DASHBOARD.md
|
||||||
72398b5225b0ca9bc3f6c7aa7902e043678180e40b198156833b8e7504a72922 docs/DOCKER_DISCOVERY.md
|
72398b5225b0ca9bc3f6c7aa7902e043678180e40b198156833b8e7504a72922 docs/DOCKER_DISCOVERY.md
|
||||||
279afcf0b5b8d2f8ef7b723ba0b5050ca4536f14445f3ee1b71e9f32b800bb9b docs/ERROR_PAGES.md
|
279afcf0b5b8d2f8ef7b723ba0b5050ca4536f14445f3ee1b71e9f32b800bb9b docs/ERROR_PAGES.md
|
||||||
469e5d59d2fcab76f2610571cb9cbbba51cbadb40fec2495b3389a94f0c7b591 docs/FASTCGI.md
|
a692066ed3d74f0c1edf4b2cd78badc382cbdb97b28b865b9188b621b8d49278 docs/FASTCGI.md
|
||||||
01b6d461d6b17b321d63cfb51435814858b29b437ed3e0bb13aba4351eaaf735 docs/FEATURES.md
|
01b6d461d6b17b321d63cfb51435814858b29b437ed3e0bb13aba4351eaaf735 docs/FEATURES.md
|
||||||
f7bb59821e0d6c45ae2a1789086fd9dab33d91c0ceae784ae68f64bd13b5f496 docs/HEADLESS.md
|
f7bb59821e0d6c45ae2a1789086fd9dab33d91c0ceae784ae68f64bd13b5f496 docs/HEADLESS.md
|
||||||
bce732d845c23ad677ae811e7529b9322ab41d04ca808e04087d0f76bccd9309 docs/INSTALL.md
|
bce732d845c23ad677ae811e7529b9322ab41d04ca808e04087d0f76bccd9309 docs/INSTALL.md
|
||||||
@@ -58,11 +58,11 @@ e5e50be31b3160588599336b1871b07a1e829b202454a67d2dc4e2e754d23eab docs/LOGS.md
|
|||||||
127cd47030dc48f5d9d9b1a3853291626440d95bfbd80c604b8eb9d15966f48f docs/MIGRATION.md
|
127cd47030dc48f5d9d9b1a3853291626440d95bfbd80c604b8eb9d15966f48f docs/MIGRATION.md
|
||||||
48105c4303401aa99ffff00d3ebaf3024535a492a4a7b883c6803e4732b37434 docs/MONITORING.md
|
48105c4303401aa99ffff00d3ebaf3024535a492a4a7b883c6803e4732b37434 docs/MONITORING.md
|
||||||
6d3937088eeb67a9f690d44ebe0b6e660b68116dbf69091ac7816bdc52cec2b6 docs/PERFORMANCE.md
|
6d3937088eeb67a9f690d44ebe0b6e660b68116dbf69091ac7816bdc52cec2b6 docs/PERFORMANCE.md
|
||||||
96a69bf9b68e72e6f352f23173bcd0b013af8d6d9cef56141e49efbe35f68f2d docs/PHP_FPM.md
|
461698c622d25b7d9b9db7e367e0c13d29f2a166280f4f231417159f93103860 docs/PHP_FPM.md
|
||||||
add07f23324742fb03fe5f77fb671bb239f6220f8e11c9270e0ec459ea3a256f docs/POLICY.md
|
add07f23324742fb03fe5f77fb671bb239f6220f8e11c9270e0ec459ea3a256f docs/POLICY.md
|
||||||
54e9e771707777144105a59c4d6dd6589cc74d735aea660af5366283cf820ee6 docs/README.md
|
54e9e771707777144105a59c4d6dd6589cc74d735aea660af5366283cf820ee6 docs/README.md
|
||||||
e90842a75459ddb5892334f66a4139d9301280b4d0c17077d211749bd7c90d80 docs/RESPONSE_DELIVERY.md
|
e90842a75459ddb5892334f66a4139d9301280b4d0c17077d211749bd7c90d80 docs/RESPONSE_DELIVERY.md
|
||||||
95ab4786792d5920a2e109b7d196838057f24b512a69d713fb5884dc75c84339 docs/SCREENSHOTS.md
|
01a15291ff15f51991a0e3c442197e01ab9f202e05145b79bae2699a660b14e0 docs/SCREENSHOTS.md
|
||||||
3a48184b36d225757fc5e2d22c629f89bfe5d4007ff087f0be0ce02a5fb04c28 docs/SECURITY.md
|
3a48184b36d225757fc5e2d22c629f89bfe5d4007ff087f0be0ce02a5fb04c28 docs/SECURITY.md
|
||||||
adc43ad1ea4f1f9a9726c0bf1ec529a4a5cc9ee39e4013c945f807d31555a352 docs/STREAMS.md
|
adc43ad1ea4f1f9a9726c0bf1ec529a4a5cc9ee39e4013c945f807d31555a352 docs/STREAMS.md
|
||||||
c9c9a0b401f0565f15b834d855bfdb34edb3eab46bff03d9e0825af204d20bf8 docs/TODO.md
|
c9c9a0b401f0565f15b834d855bfdb34edb3eab46bff03d9e0825af204d20bf8 docs/TODO.md
|
||||||
@@ -73,20 +73,20 @@ df83d07d7186a5eea60d206dee3cb62b7f6505a066d84141fc53130e2f29760b docs/TROUBLESH
|
|||||||
382e084a1f9e35627ccb43eaf451c18fb6d0cc752397c2178108d71de592a931 docs/VCL_TRAFFIC_COOKBOOK.md
|
382e084a1f9e35627ccb43eaf451c18fb6d0cc752397c2178108d71de592a931 docs/VCL_TRAFFIC_COOKBOOK.md
|
||||||
19ac53f4f908f7761ed77f1241d809b26527fd74770714c4c799539351f05259 docs/VHOSTS.md
|
19ac53f4f908f7761ed77f1241d809b26527fd74770714c4c799539351f05259 docs/VHOSTS.md
|
||||||
0e4b6fd1a73187f1660c98b0b817fbd913989211044eee18f5afa0acfae53a39 docs/WEB_SERVER.md
|
0e4b6fd1a73187f1660c98b0b817fbd913989211044eee18f5afa0acfae53a39 docs/WEB_SERVER.md
|
||||||
42822b1c9801bcadb0e2d785cb91883ca2df1da141222631f153030c95f5e197 docs/images/about.png
|
37ecc35b2071f228ae245bd20f4a41f76a9fc5c4e3005e9cf0381259c76015f6 docs/images/about.png
|
||||||
deff2393a987ac7102179dc85b48baf2c4a3882291bb8c7c584d760cc497c631 docs/images/api.png
|
9e5f745b0e6bdac5854161e77f533c19275cc04efff492873739e64f550fce29 docs/images/api.png
|
||||||
74df8228ea6283004b3e87b4d297e43637371eb4a700b69c7248114c8670777a docs/images/cache.png
|
6352616bc2d89454116c7f9abcd14378b3df4e4a7d32ea0794f5b11ecb8786f3 docs/images/cache.png
|
||||||
4f44f53fcbf449f4b4fa7216c54582d414fd12de99d862ebb0d5febcc240ab3b docs/images/certificates.png
|
87fa3315af1cb06f27a97d9984ec8999072a76588de1cc716547c290203eeda5 docs/images/certificates.png
|
||||||
844b6d480963a0d8f28dc539e4b99491cd01aff49e57cfb5e29a3dc3323c7e3e docs/images/documentation.png
|
d2eed8abbe8915935f98c96839001f2d9fdfd50b479dbcfb2a64dabc3d45ea11 docs/images/documentation.png
|
||||||
963e3bc91428ff8a042ea41d4ce64363edf260aa76783f42eba28bd858e2b163 docs/images/login.png
|
a6d0864041ff4b146c2bb5b23c17f46c0ec3941ea498f9008dcca8a9386b3b3e docs/images/login.png
|
||||||
6f400b182bd1cded6ee6da822d00484403600d9c073a064d0ca41ebbac96aa61 docs/images/logs.png
|
4c40ca6ad2b772cac3036a85abcf27b3936a7270d5e6bfe653b6e7d76b90bd3b docs/images/logs.png
|
||||||
03c181fea434123e76f31eccaf7576a65ba26fcd7239cfab107928c497c7c110 docs/images/overview-backends.png
|
4061b40f37bb02718684a2fa95e3d7a397c19e976d3baee79faf1885006d480c docs/images/overview-backends.png
|
||||||
dcdd387384037c7a1a32f6a4d948a182e44bea472542b8fe4e9b6c917edcf551 docs/images/overview.png
|
a0edc4be3eefa5a5b97e7b69d6a8fa9cbd9e7c14e7022ae77464e3aa7684aa8b docs/images/overview.png
|
||||||
211847ddb7346dda6c9bb471af0dc86eac39701a22398c3c5126d10fdff29bb9 docs/images/settings.png
|
f835bb11d6a34f2807de4172296e81cdf07b38fcc2c7837ace614bb0c2b19a6e docs/images/settings.png
|
||||||
20be038ca64a3d9e284b3f7d583da61b9b03f03db52e0be62039a1233e49e973 docs/images/traffic.png
|
a69e89fadcb47fd47413367b9f3a69e380d05539841b12a803d50463ef5eab85 docs/images/traffic.png
|
||||||
11e6e1dfb2980a308f70dc4e1104c5bc2c015689a369a16e976302faf5fa6262 docs/images/vhost-editor.png
|
bde10d89fe235003f598aede8858a114572e789c11ea1369a289bbb65366c480 docs/images/vhost-editor.png
|
||||||
72b3393821185c00849698c38d83c7f4d7d1883ba3d6c75005d4cbe5b3abd0c0 docs/images/vhosts.png
|
b6e3616a8af5cf431e4ac2d668cfb584639cd483a857d0eed69de20d7d4427e5 docs/images/vhosts.png
|
||||||
18c8a09f2542ab22e81e36e50fb0ba004a4a0dd2cb2eb9cd7434a66a2b9303af docs/images/web-server.png
|
0ea4eb0dbd588872dfb3a62aaf717efcbdaad424c085d74374be38e5378d0665 docs/images/web-server.png
|
||||||
5502e8ce44276213803b66c58e3a4d804a1354f5ed5d83f47ee805e8c44ab088 examples/acl-headers.json
|
5502e8ce44276213803b66c58e3a4d804a1354f5ed5d83f47ee805e8c44ab088 examples/acl-headers.json
|
||||||
2431dd88a2d9ad2cf3cd4b8fcdfa602563ab1013c612d8917fddbe7febfb2dc3 examples/cache-dashboard.json
|
2431dd88a2d9ad2cf3cd4b8fcdfa602563ab1013c612d8917fddbe7febfb2dc3 examples/cache-dashboard.json
|
||||||
e31ac05a99615e4ea6c4c9a8b2e090968583fe3959f838a600b5740cb170f8c5 examples/config.json
|
e31ac05a99615e4ea6c4c9a8b2e090968583fe3959f838a600b5740cb170f8c5 examples/config.json
|
||||||
@@ -138,8 +138,8 @@ e9cbb0224c4a3d23a6019ba557e0cd568c1ad5e1582ff1e335fb7d99b7a1055d integrations/r
|
|||||||
3d44e4080206c71d3ffdbcbd2f50c43cb227bc38e096801f07f818388a49a405 integrations/routeros-oci-build/build-routeros-oci.sh
|
3d44e4080206c71d3ffdbcbd2f50c43cb227bc38e096801f07f818388a49a405 integrations/routeros-oci-build/build-routeros-oci.sh
|
||||||
3f267cafa16006e5456ade78ee2d5fae02cc7ce747839523068ffd8d7c98798a integrations/routeros-oci-build/docker-entrypoint.sh
|
3f267cafa16006e5456ade78ee2d5fae02cc7ce747839523068ffd8d7c98798a integrations/routeros-oci-build/docker-entrypoint.sh
|
||||||
ae2ee2887fcba096d0de25edcc18faa1ffec35759274518db1bf6d6982f7176c langs/README.md
|
ae2ee2887fcba096d0de25edcc18faa1ffec35759274518db1bf6d6982f7176c langs/README.md
|
||||||
e730767884f63759c3f9ef2ddf6726788ab5ec08f1266747029dc66989f8a3f0 langs/en_US.json
|
47a8bec030c6123a9b8543791a9a2c3ffc15f0749450bdc775bf2e620c4c4a07 langs/en_US.json
|
||||||
7e7e99665653386ce73cdecb522503cc80c9c26e91ebae07e5086979ef644521 langs/pl_pl.json
|
f7e877047212f425e1c75334d0e346b4a0b7aa3b08e7b367987dc5ba775bf2f5 langs/pl_pl.json
|
||||||
80d1fd9cc05d51235f6a871f48cbad1440b2095609c335583674829f1df08a42 make_zip.py
|
80d1fd9cc05d51235f6a871f48cbad1440b2095609c335583674829f1df08a42 make_zip.py
|
||||||
27790aa2c6b5be577fe3f34876385624dca824162fe96ee313845f0389d4674a migrations/0002_admin.sql
|
27790aa2c6b5be577fe3f34876385624dca824162fe96ee313845f0389d4674a migrations/0002_admin.sql
|
||||||
d28a83df192518a8b7c01383b683bd34b84307a6e839a05bf917af69d0c87f09 migrations/0003_certificate_renewals.sql
|
d28a83df192518a8b7c01383b683bd34b84307a6e839a05bf917af69d0c87f09 migrations/0003_certificate_renewals.sql
|
||||||
@@ -213,7 +213,7 @@ ab0449d253fd776ae1658a92f2d7dd509ee18ebdecdec085f120733b2f08e740 src/admin/file
|
|||||||
a2cdd534cb989d5232df344e4f17369dedd8cf19165c0c5b51dbb21b68475e11 src/admin/file_logs_query.rs
|
a2cdd534cb989d5232df344e4f17369dedd8cf19165c0c5b51dbb21b68475e11 src/admin/file_logs_query.rs
|
||||||
5f68738d1867dfad63324038c1f88addb89801fa925898cbcb15ee2c5b139c67 src/admin/logging_api.rs
|
5f68738d1867dfad63324038c1f88addb89801fa925898cbcb15ee2c5b139c67 src/admin/logging_api.rs
|
||||||
781fd5f176dd8f2372f75bd90edcf160708e2d0a8d6a115ba4b283c0cd49eb2d src/admin/mod.rs
|
781fd5f176dd8f2372f75bd90edcf160708e2d0a8d6a115ba4b283c0cd49eb2d src/admin/mod.rs
|
||||||
d0cb75216344706f93f61507c2e375451341377214a3c659b9c9fd8f29209a2e src/admin/openapi.json
|
7bbb30c7e3d4313cd04fd5b818a13f646d3a65a13b49655867468c31b72acefe src/admin/openapi.json
|
||||||
6f68d2545a33bbedc588511dff1179a1634c0c9939fea486adab38b25ee20591 src/admin/operations.rs
|
6f68d2545a33bbedc588511dff1179a1634c0c9939fea486adab38b25ee20591 src/admin/operations.rs
|
||||||
257d93a29d0bda96462bcf695aba8d0ec0f9412c379e066ec46ae8ee034e3a53 src/admin/panel_assets.rs
|
257d93a29d0bda96462bcf695aba8d0ec0f9412c379e066ec46ae8ee034e3a53 src/admin/panel_assets.rs
|
||||||
f5127855c2994d052678865df36d703b74f4a0afc633daf7718b10da18d26e37 src/admin/panel_content.rs
|
f5127855c2994d052678865df36d703b74f4a0afc633daf7718b10da18d26e37 src/admin/panel_content.rs
|
||||||
@@ -227,7 +227,7 @@ ea202c67d9acb7614046f153beecdff10d5822b3d5627eaf2ebda33954b36474 src/admin/pref
|
|||||||
6930b4f4b45257772b321b20a9becdf9bc4610274852948ba38c2d0cdf02dfaf src/admin/refresh_preferences.rs
|
6930b4f4b45257772b321b20a9becdf9bc4610274852948ba38c2d0cdf02dfaf src/admin/refresh_preferences.rs
|
||||||
409fc0bfa0b35b766e50c63b2e147d439fa31f89f4559df9d7045a903a2da7c0 src/admin/router.rs
|
409fc0bfa0b35b766e50c63b2e147d439fa31f89f4559df9d7045a903a2da7c0 src/admin/router.rs
|
||||||
ec7128da7e6cf67deb99275f5bea38408b95ce6cf97c8d501655c558427f67d1 src/admin/session.rs
|
ec7128da7e6cf67deb99275f5bea38408b95ce6cf97c8d501655c558427f67d1 src/admin/session.rs
|
||||||
4cf5d27789c3bd9240e77ee174b6d8bda4b7a9d933835519b8591e97991bebd7 src/admin/status.rs
|
69551eebf177add5297ddb3c921022f7861ca706c1b63d3b6fe3b06e4c7a5630 src/admin/status.rs
|
||||||
bac2116e9a7d5f19a112565e1483787ff6102f489bed0cb3b0b3e2102ddd3edb src/admin/status_live.rs
|
bac2116e9a7d5f19a112565e1483787ff6102f489bed0cb3b0b3e2102ddd3edb src/admin/status_live.rs
|
||||||
c20f214e2ec2a14d8a88d07a63a27d9396a7a6bf9446f6ee31dbd77b12e4b585 src/admin/status_system.rs
|
c20f214e2ec2a14d8a88d07a63a27d9396a7a6bf9446f6ee31dbd77b12e4b585 src/admin/status_system.rs
|
||||||
ea1d0b8ff69157215f9358f0de35b91462ab2bf1fb97f9ce9b37846d0432c56b src/admin/tail.rs
|
ea1d0b8ff69157215f9358f0de35b91462ab2bf1fb97f9ce9b37846d0432c56b src/admin/tail.rs
|
||||||
@@ -241,7 +241,7 @@ faa9735c2a02746b2954bc4955eb609f94afebb685cd5521d2629640cea2777a src/admin/web/
|
|||||||
aed3aea4eef0011c6b51d39736782e7d1ec52662e422f40e0c7b9ddfc19d0378 src/admin/web/app/certificate-inspection.js
|
aed3aea4eef0011c6b51d39736782e7d1ec52662e422f40e0c7b9ddfc19d0378 src/admin/web/app/certificate-inspection.js
|
||||||
80f2f9dc059df5ab23b189930d820ef4a1a2f0f719ed4d18dda3333a8c3c3561 src/admin/web/app/chart-scales.js
|
80f2f9dc059df5ab23b189930d820ef4a1a2f0f719ed4d18dda3333a8c3c3561 src/admin/web/app/chart-scales.js
|
||||||
dedda129e173a347ebca9445c8a313849d1d678c256deabeb18f9977559e021a src/admin/web/app/config-history.js
|
dedda129e173a347ebca9445c8a313849d1d678c256deabeb18f9977559e021a src/admin/web/app/config-history.js
|
||||||
bbb6460e1b2209cb1bab173ad261014602fc6b7acdc670a21da089fab929d217 src/admin/web/app/core.js
|
7743afbefc39d201552daebdd7cb9e6b058444b27230901975bcbe7cfaca502a src/admin/web/app/core.js
|
||||||
1fe90b27e241477e67b24283f3ae8a15a1770e3a3a8f5017a0732396294bff90 src/admin/web/app/dashboard-inline-layout.js
|
1fe90b27e241477e67b24283f3ae8a15a1770e3a3a8f5017a0732396294bff90 src/admin/web/app/dashboard-inline-layout.js
|
||||||
e9830fdbaaf0a671f7ce2121564cfd7960c49733b172a4bd927f15d0e722fc4d src/admin/web/app/dashboard-presets.js
|
e9830fdbaaf0a671f7ce2121564cfd7960c49733b172a4bd927f15d0e722fc4d src/admin/web/app/dashboard-presets.js
|
||||||
fce1fe268749b28ab68ac41519ced05252c1193f11bc9a3851de45dae4c419ad src/admin/web/app/docker-dashboard.js
|
fce1fe268749b28ab68ac41519ced05252c1193f11bc9a3851de45dae4c419ad src/admin/web/app/docker-dashboard.js
|
||||||
@@ -257,7 +257,7 @@ e799e0406c7ff54cbf71faf704a20265bdf5180a8ed2f26388d0775231365410 src/admin/web/
|
|||||||
f6c49948dd32de1e0a03938c4d236c7ad89c7a2b3253b5c6940b214aad799b7b src/admin/web/app/preferences.js
|
f6c49948dd32de1e0a03938c4d236c7ad89c7a2b3253b5c6940b214aad799b7b src/admin/web/app/preferences.js
|
||||||
30ec0a7027215eae63946689af2c042de0cf468a6b1054535694da4dd4214cdb src/admin/web/app/rate-sampling.js
|
30ec0a7027215eae63946689af2c042de0cf468a6b1054535694da4dd4214cdb src/admin/web/app/rate-sampling.js
|
||||||
3b8e566d81a5b94ef21c73e7805ae128454f085554de9358040de266bcbdb0e0 src/admin/web/app/refresh.js
|
3b8e566d81a5b94ef21c73e7805ae128454f085554de9358040de266bcbdb0e0 src/admin/web/app/refresh.js
|
||||||
b3d8165a126e6cd7ae4bdbac24541d687ec35a0f705b5cfae855ccd8336ea99c src/admin/web/app/runtime.js
|
3db7f720d2ce9dfab9eb5e4241df8ed93d3b44de7d6a85b7c23e4ff452ff8624 src/admin/web/app/runtime.js
|
||||||
31201586925e6f4792071d7d03fb05dcc4a69a03c02a4e85eb0746f45af68074 src/admin/web/app/session-resume.js
|
31201586925e6f4792071d7d03fb05dcc4a69a03c02a4e85eb0746f45af68074 src/admin/web/app/session-resume.js
|
||||||
c638e82ebe2c49c61124ab647e74ff594d293fa85131051cff625f9d1f1451a5 src/admin/web/app/settings.js
|
c638e82ebe2c49c61124ab647e74ff594d293fa85131051cff625f9d1f1451a5 src/admin/web/app/settings.js
|
||||||
2281f06990f86acd3ff12fa368e1b73e4c83601e20245f24abbce389dfccb77f src/admin/web/app/sidebar.js
|
2281f06990f86acd3ff12fa368e1b73e4c83601e20245f24abbce389dfccb77f src/admin/web/app/sidebar.js
|
||||||
@@ -283,22 +283,22 @@ e9cfe14e8e5093e8f8be504d9590643d71935846241f4e73ea4afcafb7f0f806 src/admin/web/
|
|||||||
9efc37b434336db30333f28c09e14355c45332e1d28c64bb6b88f875ba9fd297 src/admin/web/cf_page/placeholder.html
|
9efc37b434336db30333f28c09e14355c45332e1d28c64bb6b88f875ba9fd297 src/admin/web/cf_page/placeholder.html
|
||||||
38bb67d9ec6b6e08298d63267afa3a92cbc0818fb0a21fc39520afdca4a995e4 src/admin/web/cf_page/welcome.html
|
38bb67d9ec6b6e08298d63267afa3a92cbc0818fb0a21fc39520afdca4a995e4 src/admin/web/cf_page/welcome.html
|
||||||
5ad913eb4a06e9da62338da4e6122d4bfef93954b8ee718215d3e00ad1e5ab17 src/admin/web/css/00-tokens.css
|
5ad913eb4a06e9da62338da4e6122d4bfef93954b8ee718215d3e00ad1e5ab17 src/admin/web/css/00-tokens.css
|
||||||
8271a56ed6edc1b2abb2302224ed4347c21cd5fd2c2d1229b516b86301555871 src/admin/web/css/10-base.css
|
9b6aafe8ccac0b198a7a1f02a0fb58f6b68258398bfc869885b0628a800f13ec src/admin/web/css/10-base.css
|
||||||
9cd9b62ff8cfba47cb180e29ea5f69b8e97c7817dfcfddcb55fc4e08d11a7184 src/admin/web/css/20-shell.css
|
9cd9b62ff8cfba47cb180e29ea5f69b8e97c7817dfcfddcb55fc4e08d11a7184 src/admin/web/css/20-shell.css
|
||||||
99f37617e65ea064e526c161e63587d4081a03be861b6d305f678cf783c4bd1c src/admin/web/css/30-overview.css
|
99f37617e65ea064e526c161e63587d4081a03be861b6d305f678cf783c4bd1c src/admin/web/css/30-overview.css
|
||||||
eb35c918e67c3d8fc43836662e35a12f83149dc9bb32fbfdb5e69ed24414c035 src/admin/web/css/40-editors.css
|
178c43087bc8c226e39edb6e06da2ac495831f291f5e59f3cd49a74a87bf340f src/admin/web/css/40-editors.css
|
||||||
fe4621d42adca7649225afe53a0ce67ebf6c24a3b837d19b1f9dadab0b20618b src/admin/web/css/50-settings.css
|
fe4621d42adca7649225afe53a0ce67ebf6c24a3b837d19b1f9dadab0b20618b src/admin/web/css/50-settings.css
|
||||||
9bfee7bc5fed42aa5ee17f14d43f73073646fdbc6e7d0466be20ac57740c3bd1 src/admin/web/css/55-policy.css
|
9bfee7bc5fed42aa5ee17f14d43f73073646fdbc6e7d0466be20ac57740c3bd1 src/admin/web/css/55-policy.css
|
||||||
638171543182172b32e3ac899ff6e63e2bd726983b809d792e88d5b12fe22e34 src/admin/web/css/60-monitoring.css
|
638171543182172b32e3ac899ff6e63e2bd726983b809d792e88d5b12fe22e34 src/admin/web/css/60-monitoring.css
|
||||||
2393d5c70d0a3c8f492fc2f0cd9e5fe949e746fcc70367cc962c632d2230ebe0 src/admin/web/css/70-responsive.css
|
0fe476fc31c15a9e2bbc3fff1585e78f5c0a04094661d01725bda504ae582da0 src/admin/web/css/70-responsive.css
|
||||||
4149881632a6ed48340443c51362c59d2ac7ae16eba8d724fa9a9555d2af8314 src/admin/web/css/README.md
|
4149881632a6ed48340443c51362c59d2ac7ae16eba8d724fa9a9555d2af8314 src/admin/web/css/README.md
|
||||||
ea08fbe1a616042f2dab32d829dba837660a5facb068bb9d5a9b3abdb5c00717 src/admin/web/css/manifest.json
|
ea08fbe1a616042f2dab32d829dba837660a5facb068bb9d5a9b3abdb5c00717 src/admin/web/css/manifest.json
|
||||||
7d3c09f13e3026e3230f35472a9d163b790c7c68b672127ed9fb0e66b26e3d70 src/admin/web/dashboard-builtin-presets.json
|
7d3c09f13e3026e3230f35472a9d163b790c7c68b672127ed9fb0e66b26e3d70 src/admin/web/dashboard-builtin-presets.json
|
||||||
78bf6179f769b68d518028464697e50dea5d75e33ecb1b89d88e2c2b01e86bf2 src/admin/web/dashboard-defaults.json
|
78bf6179f769b68d518028464697e50dea5d75e33ecb1b89d88e2c2b01e86bf2 src/admin/web/dashboard-defaults.json
|
||||||
355046ecb80ce6adb73ceabd29825b0cf79ca364771070cedd5eb44760fae890 src/admin/web/dashboard-widgets.json
|
355046ecb80ce6adb73ceabd29825b0cf79ca364771070cedd5eb44760fae890 src/admin/web/dashboard-widgets.json
|
||||||
50d1ebcbaf4d0b2968da23bb943fc3f67131c5d32df3f61d23ff37aad9da5b81 src/admin/web/demo.html
|
50d1ebcbaf4d0b2968da23bb943fc3f67131c5d32df3f61d23ff37aad9da5b81 src/admin/web/demo.html
|
||||||
9efca558964ec3eaa25d32d9a11ca0ed20ffb3852f47712da1fc35c8402894cc src/admin/web/docker.js
|
37e944b32d8ff0b06f9ae21e94f23af636888f559017cff2bae1f62ac5bfcfae src/admin/web/docker.js
|
||||||
8bf5d1f4f06d6e87536d808a680bf3d3a0c90c1637df0e58da667fd22ad4782d src/admin/web/docs.css
|
7b086bae4e7c6b18a9c32fe3de4e32cb61f0ef1cbeeec0e1a2f39941d797107a src/admin/web/docs.css
|
||||||
aeffd403fa1823df7d9fa4c48280b4033b2d15e4cb9f66608caff89290de0a52 src/admin/web/docs.html
|
aeffd403fa1823df7d9fa4c48280b4033b2d15e4cb9f66608caff89290de0a52 src/admin/web/docs.html
|
||||||
306db8db9e4d651a85e09dbc15464e7f920d7fe5bd9ec9d1d8068321eb0106ab src/admin/web/docs.js
|
306db8db9e4d651a85e09dbc15464e7f920d7fe5bd9ec9d1d8068321eb0106ab src/admin/web/docs.js
|
||||||
8fbc2a837d6f20a7f96c856a91fcba967b40a33494fe27ec876ee1b3b685178f src/admin/web/drafts.js
|
8fbc2a837d6f20a7f96c856a91fcba967b40a33494fe27ec876ee1b3b685178f src/admin/web/drafts.js
|
||||||
@@ -317,22 +317,22 @@ e6c4d91d1542d0a5b47bb8736f9539d43a6713df5a473b635519d5b7eac2eb9c src/admin/web/
|
|||||||
003d382cc8dd69ad7237679632c04a9389366bb71dd7dca8ee64ee06614aa9a5 src/admin/web/error_auth_provider.html
|
003d382cc8dd69ad7237679632c04a9389366bb71dd7dca8ee64ee06614aa9a5 src/admin/web/error_auth_provider.html
|
||||||
0a5fff35555153f59d4346933030a67b6e1a8768cee7a47cfa2fcf1a2c564f63 src/admin/web/favicon.svg
|
0a5fff35555153f59d4346933030a67b6e1a8768cee7a47cfa2fcf1a2c564f63 src/admin/web/favicon.svg
|
||||||
3fbd758d96701dab907e98331b41e8e8953bc969a00aa9e44df5c401b8ac19c9 src/admin/web/file-logs.js
|
3fbd758d96701dab907e98331b41e8e8953bc969a00aa9e44df5c401b8ac19c9 src/admin/web/file-logs.js
|
||||||
06a2f3cace482cae2221510042108d036aac6c0b7de68bcd4e5f036f59ec0ce9 src/admin/web/host404.js
|
d5a0961b3668c9686a362e8479b21c58efce82fd4ab323b7b9de89b5fa9ab5a7 src/admin/web/host404.js
|
||||||
8d0f56bf391817bb18b5f4533b0bab47112f7d110384c2312b8c50b2de73ee43 src/admin/web/index.html
|
ca12e6cb1f0732f33f5546da9a188d8ef4d9b103d2a51312044d64387797a961 src/admin/web/index.html
|
||||||
42029866a8a20ac4c66a9a087676c14766914648d507ffeb2dbf817dd0bc4d9b src/admin/web/integrations.js
|
05cb95ec7bcdcc5c626a995dfa455ee0e7ed35d99d7131bcb2669aa8291917b4 src/admin/web/integrations.js
|
||||||
7a12f020fc587205694978ab41b660e9a80487d413fbf6e34fc525eabc58308f src/admin/web/login-keys.json
|
7a12f020fc587205694978ab41b660e9a80487d413fbf6e34fc525eabc58308f src/admin/web/login-keys.json
|
||||||
ac9f667273918e18406df06cb2613c923f50a88897693a03a18f500e22dc6ec2 src/admin/web/login.html
|
ac9f667273918e18406df06cb2613c923f50a88897693a03a18f500e22dc6ec2 src/admin/web/login.html
|
||||||
c2e5f554810b8e34fb47361fb90a01073a2e332ee26d82e030956fad3ec1f83e src/admin/web/login.js
|
c2e5f554810b8e34fb47361fb90a01073a2e332ee26d82e030956fad3ec1f83e src/admin/web/login.js
|
||||||
8796ce58590e63e0d1e2b7c5e2cad2d9ff52949c4a5c611f2bf4b86e294a1acf src/admin/web/management.js
|
208c87939cffd45be11de46f31f37eecb7bc8d496fa1985f15e75eaac205e733 src/admin/web/management.js
|
||||||
2c96b6341f2445ca4493bbd5ea9af8ac1ab75d1077d73a3dcefda0186e2225d5 src/admin/web/partials/overview-charts.html
|
2c96b6341f2445ca4493bbd5ea9af8ac1ab75d1077d73a3dcefda0186e2225d5 src/admin/web/partials/overview-charts.html
|
||||||
16d1d275e3f7cfc56d4ad58042dbe095fbbad59bfadefeec67bbf49978869da4 src/admin/web/partials/overview-metrics.html
|
16d1d275e3f7cfc56d4ad58042dbe095fbbad59bfadefeec67bbf49978869da4 src/admin/web/partials/overview-metrics.html
|
||||||
8bb503677f51362dc3cc9522596affa65c5960ab5e44b1c935cb4abf85505429 src/admin/web/policy-presets.js
|
8bb503677f51362dc3cc9522596affa65c5960ab5e44b1c935cb4abf85505429 src/admin/web/policy-presets.js
|
||||||
943121aaaaddcee81ce70fb153820666d06a41abab17d60c20c7e3dba1894f8c src/admin/web/policy.js
|
943121aaaaddcee81ce70fb153820666d06a41abab17d60c20c7e3dba1894f8c src/admin/web/policy.js
|
||||||
80d6eb03f204a90f7b140c5b053d0fd8facb350b1c96b74fa1402e2a35d4fb10 src/admin/web/prometheus-token.js
|
80d6eb03f204a90f7b140c5b053d0fd8facb350b1c96b74fa1402e2a35d4fb10 src/admin/web/prometheus-token.js
|
||||||
c2080a00c15b8b1d2ac014828edc3682de1765fd094fc2d1c5b9f597f218e9b9 src/admin/web/redirects.js
|
084c626f438b1787366cec43c7b116dc4eedc8a5799ab7c3addb7bf725d60701 src/admin/web/redirects.js
|
||||||
ee0d831c5fa9f2e121ce833b3b3df80cda65f41f0549ebce664098c75c2a8e75 src/admin/web/settings.js
|
ee0d831c5fa9f2e121ce833b3b3df80cda65f41f0549ebce664098c75c2a8e75 src/admin/web/settings.js
|
||||||
8eadbada619b15087783dcfa0e889a81f88e78034d084c5ab616f7912b835940 src/admin/web/status_200.html
|
8eadbada619b15087783dcfa0e889a81f88e78034d084c5ab616f7912b835940 src/admin/web/status_200.html
|
||||||
d7b6a0e87247aca4296f978f501a9ed282389023fc01085b64d6deb5930a8c7f src/admin/web/streams.js
|
880d4febf5b071b148b154f25cf12dc2314799c2684b2895ee63bfd618c09cd7 src/admin/web/streams.js
|
||||||
14ef42dec556c5fa62ff4ed4d6865d28f322e8e963dc43e3a714ef9d0af12ac6 src/admin/web/system-info.js
|
14ef42dec556c5fa62ff4ed4d6865d28f322e8e963dc43e3a714ef9d0af12ac6 src/admin/web/system-info.js
|
||||||
7ea8409fa899398ef3d35402d73de6fdf05cf9f28892a5e30fe3f15fc6bb9d7d src/admin/web/tls-configurator.js
|
7ea8409fa899398ef3d35402d73de6fdf05cf9f28892a5e30fe3f15fc6bb9d7d src/admin/web/tls-configurator.js
|
||||||
2a83603fbc96df39728327dd9a86f25af7b9b1e69a6e25adb557a94d6b84da3e src/admin/web/traffic-panel.js
|
2a83603fbc96df39728327dd9a86f25af7b9b1e69a6e25adb557a94d6b84da3e src/admin/web/traffic-panel.js
|
||||||
@@ -347,8 +347,8 @@ b3239e67901f1796d7a974ade0796f2e3590ff8064628a5629b78c7f6ce2f32e src/admin/web/
|
|||||||
26f898527beab499d293584f79e093e6d4fdab97fb4b318a745c6e82c60a0aa3 src/admin/web/vhosts/render.js
|
26f898527beab499d293584f79e093e6d4fdab97fb4b318a745c6e82c60a0aa3 src/admin/web/vhosts/render.js
|
||||||
70e9126cecdeb9a91b52f72ab6043b7f6e9247017723f1976272cbde0bda62cd src/admin/web/vhosts/routing.js
|
70e9126cecdeb9a91b52f72ab6043b7f6e9247017723f1976272cbde0bda62cd src/admin/web/vhosts/routing.js
|
||||||
8239f66ee5a37168f055503d3e2ea8af6a8e8fe6607d4f128af9f4b17d6240cc src/admin/web/vhosts/source.js
|
8239f66ee5a37168f055503d3e2ea8af6a8e8fe6607d4f128af9f4b17d6240cc src/admin/web/vhosts/source.js
|
||||||
83069691777558b9f4556792ed48b1f7e7d49c328d366698f8f37855708d8ef0 src/admin/web/web-server-profiles.js
|
ad432985801302c3be9c4df4b4f481108e37aa2f3abba60c5a463ba2c6b3d101 src/admin/web/web-server-profiles.js
|
||||||
7285038fca397ea5ae1d005971bcf1f529bd179ec26661be2f9c926e3bf7a79c src/admin/web/web-server.js
|
3bf5bf5484c087aa8c6663758e79371d64beeb73d119cc8661992dc529386c40 src/admin/web/web-server.js
|
||||||
36f11beed56711640bb56bb6f452bf76dec2ce4be6a57e8abc19560af477c870 src/alerts.rs
|
36f11beed56711640bb56bb6f452bf76dec2ce4be6a57e8abc19560af477c870 src/alerts.rs
|
||||||
2d40c2cb32d7365df0c9cd6c8cb6f0483c7a799786c648f4836a0d9740c6c5ef src/auth/files/mod.rs
|
2d40c2cb32d7365df0c9cd6c8cb6f0483c7a799786c648f4836a0d9740c6c5ef src/auth/files/mod.rs
|
||||||
b2f948bcc3dbd24952c7b1b02d41d06757f49f0c38a78caf51f8f8a687d8480d src/auth/files/tests.rs
|
b2f948bcc3dbd24952c7b1b02d41d06757f49f0c38a78caf51f8f8a687d8480d src/auth/files/tests.rs
|
||||||
@@ -451,7 +451,7 @@ dada314e1709e960eb2e225b4d10c3cd12606c62c4bc2c0220aec1ba133e4ade src/demo.rs
|
|||||||
045593a42a6e4f632e5052c655788f0843faa313fc929265b89509f6dfff91ed src/docker.rs
|
045593a42a6e4f632e5052c655788f0843faa313fc929265b89509f6dfff91ed src/docker.rs
|
||||||
ea041859335219773748acbb479f83245ecdd3301108972fc0e0c1ea4c95717f src/docker/client.rs
|
ea041859335219773748acbb479f83245ecdd3301108972fc0e0c1ea4c95717f src/docker/client.rs
|
||||||
c312cfa95759722c56e441feb6c261fe69944e8aaccb4cf90aa7ad5f4d321c89 src/docker/model.rs
|
c312cfa95759722c56e441feb6c261fe69944e8aaccb4cf90aa7ad5f4d321c89 src/docker/model.rs
|
||||||
06c888e80b562a7b63bba1227715975da928453f724696c32aeabed5fe527311 src/docker/reconcile.rs
|
71db2cec85f2447cd1eab7caa48b7b1d377255eecd91d2e5de727f1c8af5d7b3 src/docker/reconcile.rs
|
||||||
ab62df22bbedfe84b10a498c023c2a15628bf466cb84b58c3a98c571a6b3758d src/docker/tests.rs
|
ab62df22bbedfe84b10a498c023c2a15628bf466cb84b58c3a98c571a6b3758d src/docker/tests.rs
|
||||||
34eb55a240928e98bd34e790ac63096b9ca8bf7a3008676dbbd11e1a392b8541 src/forward_auth/mod.rs
|
34eb55a240928e98bd34e790ac63096b9ca8bf7a3008676dbbd11e1a392b8541 src/forward_auth/mod.rs
|
||||||
6c25951cf69e972c47cdf815f22a5062916b2b768e39d55a26a5fc9e625a2344 src/forward_auth/tests.rs
|
6c25951cf69e972c47cdf815f22a5062916b2b768e39d55a26a5fc9e625a2344 src/forward_auth/tests.rs
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ HTTP-01 cannot create wildcard certificates; use DNS-01. A staging certificate i
|
|||||||
|
|
||||||
Expand a certificate in the Certificates inventory and use **Assign Vhosts** to check/uncheck multiple Vhosts before applying one revisioned Vhost-section save. This updates Vhost certificate mappings, not the PEM files themselves. Verify frontend listener and certificate hostname coverage separately.
|
Expand a certificate in the Certificates inventory and use **Assign Vhosts** to check/uncheck multiple Vhosts before applying one revisioned Vhost-section save. This updates Vhost certificate mappings, not the PEM files themselves. Verify frontend listener and certificate hostname coverage separately.
|
||||||
|
|
||||||
|
The expanded certificate's **Where it is used** lists Vhosts, redirects, 404 hosts, Docker vhosts and the Docker agents that allow the certificate, with hostname coverage and an **Open** link to each editor. Docker vhosts are shown read-only: they take their certificate from the agent's allowed list (**Settings → Docker agents**), so change that list rather than assigning from the certificate. The **Assigned** / **Unassigned** filters and the Assignments tile count Docker vhosts too. A certificate ID can be changed in **Edit** while nothing references it; when a Vhost, redirect, 404 host, Docker agent or the default certificate uses it, the ID is locked and the referencing items are listed.
|
||||||
|
|
||||||
The reserved HTTP-01 challenge path is available only during eligible issuance/renewal work. It is not a generic public file server and does not bypass authentication for unrelated URLs.
|
The reserved HTTP-01 challenge path is available only during eligible issuance/renewal work. It is not a generic public file server and does not bypass authentication for unrelated URLs.
|
||||||
|
|
||||||
## Managed ACME runtime
|
## Managed ACME runtime
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Select **Web Server → Web Service → PHP-FPM / FastCGI → Handler** (or edit
|
|||||||
|
|
||||||
All handlers support Unix sockets (`unix:/absolute/path.sock`) and local TCP (`tcp:127.0.0.1:port` or `tcp:[::1]:port`). TCP is deliberately restricted to loopback. FastCGI must **not** be exposed on a public interface. The backend process must already be running, and the RustProxy service account must be able to connect to its socket. The configured `php.extensions` determine which *existing files* are executable; everything else follows static-file policy, except that a `fcgiwrap` Web Service deliberately refuses to serve ordinary files and directory listings to avoid leaking CGI source or adjacent configuration. PHP extensions can only be assigned to `php_fpm`; `PHP_VALUE` and `PHP_ADMIN_VALUE` are PHP-FPM-only.
|
All handlers support Unix sockets (`unix:/absolute/path.sock`) and local TCP (`tcp:127.0.0.1:port` or `tcp:[::1]:port`). TCP is deliberately restricted to loopback. FastCGI must **not** be exposed on a public interface. The backend process must already be running, and the RustProxy service account must be able to connect to its socket. The configured `php.extensions` determine which *existing files* are executable; everything else follows static-file policy, except that a `fcgiwrap` Web Service deliberately refuses to serve ordinary files and directory listings to avoid leaking CGI source or adjacent configuration. PHP extensions can only be assigned to `php_fpm`; `PHP_VALUE` and `PHP_ADMIN_VALUE` are PHP-FPM-only.
|
||||||
|
|
||||||
The existing **PHP-FPM profiles** section also stores the new handler choices without changing existing profile IDs. The editor generates a unique ID from the profile name; use **Change** to provide a manual ID when creating a profile. Saved IDs are read-only because Web Services refer to them. Create a separate Web Service/profile for different document roots, handler types, sockets, or trust boundaries. Each Web Service has one FastCGI handler; combine several services under one domain with **Vhost → Custom locations** rather than attempting to paste Nginx `location` or `fastcgi_pass` directives.
|
The existing **PHP-FPM profiles** section also stores the new handler choices without changing existing profile IDs. The editor generates a unique ID from the profile name; use **Change** to provide a manual ID. A saved ID can be changed only while no Web Service refers to it; otherwise it is locked and the panel lists the Web Services that use it. Create a separate Web Service/profile for different document roots, handler types, sockets, or trust boundaries. Each Web Service has one FastCGI handler; combine several services under one domain with **Vhost → Custom locations** rather than attempting to paste Nginx `location` or `fastcgi_pass` directives.
|
||||||
|
|
||||||
## How paths are mapped
|
## How paths are mapped
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Install and start PHP-FPM independently, configure the application files and cre
|
|||||||
|
|
||||||
In **Web Server → PHP-FPM profiles** create a reusable profile, or set PHP options in one Web Service. Select a socket such as `unix:/run/php/app.sock` or a reachable TCP endpoint (use the syntax accepted by the editor); enable PHP, choose extensions (default `.php`) and set request/connect timeouts and concurrency. Attach the profile to a Web Service and publish that service using a Vhost.
|
In **Web Server → PHP-FPM profiles** create a reusable profile, or set PHP options in one Web Service. Select a socket such as `unix:/run/php/app.sock` or a reachable TCP endpoint (use the syntax accepted by the editor); enable PHP, choose extensions (default `.php`) and set request/connect timeouts and concurrency. Attach the profile to a Web Service and publish that service using a Vhost.
|
||||||
|
|
||||||
The shared profile editor generates a unique profile ID from the display name (for example, `My PHP App` → `my-php-app`). Use **Change** to enter an explicit ID while creating the profile. Existing profile IDs cannot be edited because Web Services refer to them; you can rename a profile without changing those links.
|
The shared profile editor generates a unique profile ID from the display name (for example, `My PHP App` → `my-php-app`). Use **Change** to enter an explicit ID. An existing profile ID can be changed only while no Web Service uses it; while it is in use the field is locked and lists the Web Services. The display name can always be changed without affecting those links.
|
||||||
|
|
||||||
## Important settings
|
## Important settings
|
||||||
|
|
||||||
|
|||||||
@@ -36,13 +36,13 @@ Reusable Web Services for static sites and PHP applications, with presets, deliv
|
|||||||
|
|
||||||
## Certificates
|
## Certificates
|
||||||
|
|
||||||
Certificate inventory with expiry, covered hostnames, assigned Vhosts and managed ACME renewal.
|
Certificate inventory with summary tiles, search and filters (all, expiring, assigned, unassigned), days left and usage per certificate. An expanded certificate shows where it is used — Vhosts, redirects, 404 hosts, Docker vhosts and Docker agents, with hostname coverage — together with its details, renewal status and files.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Traffic
|
## Traffic
|
||||||
|
|
||||||
Per-Vhost traffic analytics: top paths, clients, user agents, countries, methods and status codes.
|
Per-Vhost traffic analytics with summary tiles and ranked lists: countries, User-Agents and client IPs (Clients tab), paths, routes, methods and status codes (Requests), cache and volume (Delivery).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ Live and stored request logs with filters, search syntax and record details.
|
|||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
Listeners, TLS policy, security, logging, cache, compression, monitoring, administration and appearance.
|
Grouped settings tabs: Appearance; listeners, HTTP connections and Docker agents; rules and headers, cache, response transformation, client identity and default responses; logging, GeoIP, Prometheus and alerts; security, administration and system information; TLS policy and the certificate API.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 429 KiB After Width: | Height: | Size: 381 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 213 KiB |
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 451 KiB After Width: | Height: | Size: 436 KiB |
|
Before Width: | Height: | Size: 195 KiB After Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 319 KiB |
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 299 KiB After Width: | Height: | Size: 271 KiB |
|
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 151 KiB |
@@ -566,7 +566,7 @@
|
|||||||
"pageTooLarge": "HTML must not exceed 32 KiB in UTF-8.",
|
"pageTooLarge": "HTML must not exceed 32 KiB in UTF-8.",
|
||||||
"customErrorPages": "Custom error pages",
|
"customErrorPages": "Custom error pages",
|
||||||
"pageStaticHost": "Static / maintenance host",
|
"pageStaticHost": "Static / maintenance host",
|
||||||
"pageMissingPath": "Unmatched path",
|
"pageMissingPath": "Unmatched path (404 response)",
|
||||||
"pageDirectIp": "Direct IP access",
|
"pageDirectIp": "Direct IP access",
|
||||||
"pageUnknownHost": "Unknown hostname",
|
"pageUnknownHost": "Unknown hostname",
|
||||||
"pagesSafetyHint": "HTML is public content, not an admin template. ACLs still run first. Explicit HTTP 200 for an error masks its status to clients and monitoring. Total configuration size is limited.",
|
"pagesSafetyHint": "HTML is public content, not an admin template. ACLs still run first. Explicit HTTP 200 for an error masks its status to clients and monitoring. Total configuration size is limited.",
|
||||||
@@ -4730,7 +4730,7 @@
|
|||||||
"certificateFilterExpiring": "Expiring",
|
"certificateFilterExpiring": "Expiring",
|
||||||
"certificateFilterLabel": "Certificate filter",
|
"certificateFilterLabel": "Certificate filter",
|
||||||
"certificateFilterUnassigned": "Unassigned",
|
"certificateFilterUnassigned": "Unassigned",
|
||||||
"certificateGroupDocker": "Docker agents",
|
"certificateGroupDocker": "Docker agents allowing it",
|
||||||
"certificateGroupNotFound": "404 hosts",
|
"certificateGroupNotFound": "404 hosts",
|
||||||
"certificateGroupRedirects": "Redirects",
|
"certificateGroupRedirects": "Redirects",
|
||||||
"certificateGroupVhosts": "Vhosts",
|
"certificateGroupVhosts": "Vhosts",
|
||||||
@@ -4755,7 +4755,7 @@
|
|||||||
"certificateSummaryRedirects": "redirects",
|
"certificateSummaryRedirects": "redirects",
|
||||||
"certificateSummaryRuntime": "ACME environment",
|
"certificateSummaryRuntime": "ACME environment",
|
||||||
"certificateUntil": "until",
|
"certificateUntil": "until",
|
||||||
"certificateUsageHelp": "Redirects and 404 hosts are changed in their own editors (Open). Docker agents choose certificates in Settings → Docker agents.",
|
"certificateUsageHelp": "Redirects and 404 hosts are changed in their own editors (Open). Docker vhosts get a certificate from their agent's allowed list (Settings → Docker agents), so they are shown here but cannot be assigned from this view.",
|
||||||
"certificateValidationDns": "DNS-01 (TXT record, wildcards too)",
|
"certificateValidationDns": "DNS-01 (TXT record, wildcards too)",
|
||||||
"certificateValidationHttp": "HTTP-01 (port 80 of this server)",
|
"certificateValidationHttp": "HTTP-01 (port 80 of this server)",
|
||||||
"certificateValidityUnknown": "validity unknown",
|
"certificateValidityUnknown": "validity unknown",
|
||||||
@@ -4771,6 +4771,37 @@
|
|||||||
"trafficMoreRequests": "More in Requests",
|
"trafficMoreRequests": "More in Requests",
|
||||||
"trafficMoreClients": "More in Clients",
|
"trafficMoreClients": "More in Clients",
|
||||||
"trafficOpenCaptureSettings": "Change in Settings → Logging",
|
"trafficOpenCaptureSettings": "Change in Settings → Logging",
|
||||||
"trafficOfRequests": "of all requests"
|
"trafficOfRequests": "of all requests",
|
||||||
|
"certificateGroupDockerVhosts": "Docker vhosts",
|
||||||
|
"certificateFilterAssigned": "Assigned",
|
||||||
|
"idRenameLocked": "ID in use, so it cannot be changed. Used by",
|
||||||
|
"idRenameHelp": "Changing the ID renames this entry; metrics and logs start under the new ID.",
|
||||||
|
"idRenameHelpRedirect": "Changing the ID renames this redirect; its metrics and logs start under the new ID. Hostnames and rules stay unchanged.",
|
||||||
|
"idRenameHelpNotFound": "Changing the ID renames this 404 host; its metrics and logs start under the new ID.",
|
||||||
|
"idRenameHelpStream": "Changing the ID renames this stream; live metrics start under the new ID.",
|
||||||
|
"idRenameHelpWebService": "Not used by any vhost, so the ID can be changed.",
|
||||||
|
"idRenameHelpProfile": "Not used by any Web Service, so the ID can be changed.",
|
||||||
|
"idRenameHelpAclProfile": "Not used anywhere, so the ID can be changed.",
|
||||||
|
"idRenameHelpListener": "No vhost, redirect, 404 host or agent uses this listener, so the ID can be changed.",
|
||||||
|
"idRenameHelpDockerAgent": "Changing the ID renames the agent; its observations and metrics start under the new ID.",
|
||||||
|
"idRenameHelpCertificate": "Not assigned anywhere, so the ID can be changed.",
|
||||||
|
"certificateDuplicate": "A certificate with this ID already exists.",
|
||||||
|
"refSection_vhosts": "vhost",
|
||||||
|
"refSection_web_services": "Web Service",
|
||||||
|
"refSection_docker_agents.agents": "Docker agent",
|
||||||
|
"refSection_redirects": "redirect",
|
||||||
|
"refSection_not_found_hosts": "404 host",
|
||||||
|
"refSection_streams": "stream",
|
||||||
|
"refSection_tls": "TLS",
|
||||||
|
"refSection_tls.certificates": "certificate",
|
||||||
|
"refSection_administration": "administration",
|
||||||
|
"refSection_php_fpm_profiles": "FastCGI profile",
|
||||||
|
"refSection_acl_profiles": "ACL profile",
|
||||||
|
"refSection_listeners.endpoints": "listener",
|
||||||
|
"aclProfileUnsaved": "This ACL profile has unsaved changes. Discard them?",
|
||||||
|
"aclProfileSearch": "Search ACL profiles",
|
||||||
|
"aclProfileSearchPlaceholder": "Name, ID, network, country...",
|
||||||
|
"aclProfileSearchEmpty": "No ACL profiles match this search.",
|
||||||
|
"aclProfileNotUsed": "Not attached"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -566,7 +566,7 @@
|
|||||||
"pageTooLarge": "HTML nie może przekraczać 32 KiB w UTF-8.",
|
"pageTooLarge": "HTML nie może przekraczać 32 KiB w UTF-8.",
|
||||||
"customErrorPages": "Własne strony błędów",
|
"customErrorPages": "Własne strony błędów",
|
||||||
"pageStaticHost": "Host statyczny / przerwa techniczna",
|
"pageStaticHost": "Host statyczny / przerwa techniczna",
|
||||||
"pageMissingPath": "Niepasująca ścieżka",
|
"pageMissingPath": "Niepasująca ścieżka (odpowiedź 404)",
|
||||||
"pageDirectIp": "Wejście bezpośrednio po IP",
|
"pageDirectIp": "Wejście bezpośrednio po IP",
|
||||||
"pageUnknownHost": "Nieznany host",
|
"pageUnknownHost": "Nieznany host",
|
||||||
"pagesSafetyHint": "HTML to treść publiczna. ACL nadal działa przed odpowiedzią. Jawne HTTP 200 dla błędu ukrywa kod przed klientami i monitoringiem. Cała konfiguracja ma limit rozmiaru.",
|
"pagesSafetyHint": "HTML to treść publiczna. ACL nadal działa przed odpowiedzią. Jawne HTTP 200 dla błędu ukrywa kod przed klientami i monitoringiem. Cała konfiguracja ma limit rozmiaru.",
|
||||||
@@ -4730,7 +4730,7 @@
|
|||||||
"certificateFilterExpiring": "Wygasające",
|
"certificateFilterExpiring": "Wygasające",
|
||||||
"certificateFilterLabel": "Filtr certyfikatów",
|
"certificateFilterLabel": "Filtr certyfikatów",
|
||||||
"certificateFilterUnassigned": "Nieprzypisane",
|
"certificateFilterUnassigned": "Nieprzypisane",
|
||||||
"certificateGroupDocker": "Agenci Dockera",
|
"certificateGroupDocker": "Agenci Dockera, którzy go dopuszczają",
|
||||||
"certificateGroupNotFound": "Hosty 404",
|
"certificateGroupNotFound": "Hosty 404",
|
||||||
"certificateGroupRedirects": "Przekierowania",
|
"certificateGroupRedirects": "Przekierowania",
|
||||||
"certificateGroupVhosts": "Vhosty",
|
"certificateGroupVhosts": "Vhosty",
|
||||||
@@ -4755,7 +4755,7 @@
|
|||||||
"certificateSummaryRedirects": "przekier.",
|
"certificateSummaryRedirects": "przekier.",
|
||||||
"certificateSummaryRuntime": "Środowisko ACME",
|
"certificateSummaryRuntime": "Środowisko ACME",
|
||||||
"certificateUntil": "do",
|
"certificateUntil": "do",
|
||||||
"certificateUsageHelp": "Przekierowania i hosty 404 zmieniasz w ich edytorach (Otwórz). Agenci Dockera wybierają certyfikaty w Ustawienia → Agenci Dockera.",
|
"certificateUsageHelp": "Przekierowania i hosty 404 zmieniasz w ich edytorach (Otwórz). Docker vhosty dostają certyfikat z listy dopuszczonej w agencie (Ustawienia → Agenci Dockera), więc są tu widoczne, ale nie da się ich przypisać z tego widoku.",
|
||||||
"certificateValidationDns": "DNS-01 (rekord TXT, także wildcard)",
|
"certificateValidationDns": "DNS-01 (rekord TXT, także wildcard)",
|
||||||
"certificateValidationHttp": "HTTP-01 (port 80 tego serwera)",
|
"certificateValidationHttp": "HTTP-01 (port 80 tego serwera)",
|
||||||
"certificateValidityUnknown": "ważność nieznana",
|
"certificateValidityUnknown": "ważność nieznana",
|
||||||
@@ -4771,6 +4771,37 @@
|
|||||||
"trafficMoreRequests": "Więcej w „Żądania”",
|
"trafficMoreRequests": "Więcej w „Żądania”",
|
||||||
"trafficMoreClients": "Więcej w „Klienci”",
|
"trafficMoreClients": "Więcej w „Klienci”",
|
||||||
"trafficOpenCaptureSettings": "Zmień w Ustawienia → Logowanie",
|
"trafficOpenCaptureSettings": "Zmień w Ustawienia → Logowanie",
|
||||||
"trafficOfRequests": "wszystkich żądań"
|
"trafficOfRequests": "wszystkich żądań",
|
||||||
|
"certificateGroupDockerVhosts": "Docker vhosty",
|
||||||
|
"certificateFilterAssigned": "Przypisane",
|
||||||
|
"idRenameLocked": "ID jest w użyciu, więc nie można go zmienić. Używa go",
|
||||||
|
"idRenameHelp": "Zmiana ID zmienia nazwę wpisu; metryki i logi zaczynają się pod nowym ID.",
|
||||||
|
"idRenameHelpRedirect": "Zmiana ID zmienia nazwę przekierowania; metryki i logi zaczynają się pod nowym ID. Hostname'y i reguły zostają bez zmian.",
|
||||||
|
"idRenameHelpNotFound": "Zmiana ID zmienia nazwę hosta 404; metryki i logi zaczynają się pod nowym ID.",
|
||||||
|
"idRenameHelpStream": "Zmiana ID zmienia nazwę streamu; metryki na żywo zaczynają się pod nowym ID.",
|
||||||
|
"idRenameHelpWebService": "Żaden vhost jej nie używa, więc ID można zmienić.",
|
||||||
|
"idRenameHelpProfile": "Żadna usługa WWW go nie używa, więc ID można zmienić.",
|
||||||
|
"idRenameHelpAclProfile": "Nigdzie go nie użyto, więc ID można zmienić.",
|
||||||
|
"idRenameHelpListener": "Żaden vhost, przekierowanie, host 404 ani agent nie używa tego listenera, więc ID można zmienić.",
|
||||||
|
"idRenameHelpDockerAgent": "Zmiana ID zmienia nazwę agenta; obserwacje i metryki zaczynają się pod nowym ID.",
|
||||||
|
"idRenameHelpCertificate": "Nigdzie nie jest przypisany, więc ID można zmienić.",
|
||||||
|
"certificateDuplicate": "Certyfikat o tym ID już istnieje.",
|
||||||
|
"refSection_vhosts": "vhost",
|
||||||
|
"refSection_web_services": "usługa WWW",
|
||||||
|
"refSection_docker_agents.agents": "agent Dockera",
|
||||||
|
"refSection_redirects": "przekierowanie",
|
||||||
|
"refSection_not_found_hosts": "host 404",
|
||||||
|
"refSection_streams": "stream",
|
||||||
|
"refSection_tls": "TLS",
|
||||||
|
"refSection_tls.certificates": "certyfikat",
|
||||||
|
"refSection_administration": "administracja",
|
||||||
|
"refSection_php_fpm_profiles": "profil FastCGI",
|
||||||
|
"refSection_acl_profiles": "profil ACL",
|
||||||
|
"refSection_listeners.endpoints": "listener",
|
||||||
|
"aclProfileUnsaved": "Ten profil ACL ma niezapisane zmiany. Odrzucić je?",
|
||||||
|
"aclProfileSearch": "Szukaj profili ACL",
|
||||||
|
"aclProfileSearchPlaceholder": "Nazwa, ID, sieć, kraj...",
|
||||||
|
"aclProfileSearchEmpty": "Żaden profil ACL nie pasuje do wyszukiwania.",
|
||||||
|
"aclProfileNotUsed": "Nieprzypisany"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1305,7 +1305,7 @@
|
|||||||
},
|
},
|
||||||
"alerts": {
|
"alerts": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Since 0.37.2. General alert settings (Settings → Alerts): enabled, notifications, certificate_expiry, certificate_warning_days (1..90, default 14), certificate_error_days (below warning, default 3), certificate_renewal, acme_runtime, file_descriptors, file_descriptors_warning_percent (default 80), file_descriptors_error_percent (default 95), geoip, prometheus, update. Omitted when all values are defaults.",
|
"description": "Since 0.37.2. General alert settings (Settings \u2192 Alerts): enabled, notifications, certificate_expiry, certificate_warning_days (1..90, default 14), certificate_error_days (below warning, default 3), certificate_renewal, acme_runtime, file_descriptors, file_descriptors_warning_percent (default 80), file_descriptors_error_percent (default 95), geoip, prometheus, update. Omitted when all values are defaults.",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {
|
"enabled": {
|
||||||
@@ -2604,7 +2604,7 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/CacheRule"
|
"$ref": "#/components/schemas/CacheRule"
|
||||||
},
|
},
|
||||||
"description": "Global cache rules (Cache → Rules)."
|
"description": "Global cache rules (Cache \u2192 Rules)."
|
||||||
},
|
},
|
||||||
"static_ignore_vary_cookie": {
|
"static_ignore_vary_cookie": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -4111,6 +4111,19 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"enabled": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Assignment state; label publications omit it."
|
||||||
|
},
|
||||||
|
"certificate_id": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true,
|
||||||
|
"description": "Certificate the generated Docker vhost uses, chosen from the agent's allowed certificates (null when none applies)."
|
||||||
|
},
|
||||||
|
"certificate_mismatch": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "True when the certificate was used although it does not cover the hostnames (the assignment allows a mismatch)."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@@ -5095,7 +5108,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 64
|
"maxLength": 64
|
||||||
},
|
},
|
||||||
"description": "Account-scoped agent shown by each optional Docker Overview card (card ID → Docker agent ID). A missing card uses all agents."
|
"description": "Account-scoped agent shown by each optional Docker Overview card (card ID \u2192 Docker agent ID). A missing card uses all agents."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@@ -10711,7 +10724,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Sets an HttpOnly SameSite=Strict session cookie. Browser sessions use the configured 7–30 day absolute lifetime. Use the panel sign-in page. No bearer token or URL token is accepted.",
|
"description": "Sets an HttpOnly SameSite=Strict session cookie. Browser sessions use the configured 7\u201330 day absolute lifetime. Use the panel sign-in page. No bearer token or URL token is accepted.",
|
||||||
"security": [],
|
"security": [],
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
@@ -15521,7 +15534,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"summary": "Edit one credential’s comment and permissions without rotating the token",
|
"summary": "Edit one credential\u2019s comment and permissions without rotating the token",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Certificates"
|
"Certificates"
|
||||||
],
|
],
|
||||||
@@ -16506,7 +16519,7 @@
|
|||||||
"name": "slot",
|
"name": "slot",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": false,
|
"required": false,
|
||||||
"description": "With kind=html: saved default response to preview — direct_ip, unknown_host, response, fallback or error-<code>",
|
"description": "With kind=html: saved default response to preview \u2014 direct_ip, unknown_host, response, fallback or error-<code>",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -276,14 +276,34 @@ fn docker_runtime_views(state: &Arc<App>) -> (Vec<Value>, Vec<Value>, Value) {
|
|||||||
} else {
|
} else {
|
||||||
Vec::new()
|
Vec::new()
|
||||||
};
|
};
|
||||||
routes.push(json!({"agent_id": &agent.id, "service_key": &assignment.service_key, "pool_id": pool_id, "enabled": assignment.enabled, "hosts": hosts}));
|
let (certificate_id, certificate_mismatch) = crate::docker::assignment_certificate(
|
||||||
|
agent,
|
||||||
|
assignment,
|
||||||
|
&config.tls.certificates,
|
||||||
|
&hosts,
|
||||||
|
);
|
||||||
|
routes.push(json!({"agent_id": &agent.id, "service_key": &assignment.service_key, "pool_id": pool_id, "enabled": assignment.enabled, "hosts": hosts, "certificate_id": certificate_id, "certificate_mismatch": certificate_mismatch}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for publication in &publications {
|
for publication in &publications {
|
||||||
let pool_id =
|
let pool_id =
|
||||||
crate::docker::generated_id(&publication.agent_id, &publication.assignment.service_key);
|
crate::docker::generated_id(&publication.agent_id, &publication.assignment.service_key);
|
||||||
ids.insert(pool_id.clone());
|
ids.insert(pool_id.clone());
|
||||||
routes.push(json!({"agent_id": &publication.agent_id, "service_key": &publication.assignment.service_key, "pool_id": pool_id, "source": "labels", "assignment": &publication.assignment, "hosts": &publication.hosts}));
|
let (certificate_id, certificate_mismatch) = config
|
||||||
|
.docker_agents
|
||||||
|
.agents
|
||||||
|
.iter()
|
||||||
|
.find(|agent| agent.id == publication.agent_id)
|
||||||
|
.map(|agent| {
|
||||||
|
crate::docker::assignment_certificate(
|
||||||
|
agent,
|
||||||
|
&publication.assignment,
|
||||||
|
&config.tls.certificates,
|
||||||
|
&publication.hosts,
|
||||||
|
)
|
||||||
|
})
|
||||||
|
.unwrap_or((None, false));
|
||||||
|
routes.push(json!({"agent_id": &publication.agent_id, "service_key": &publication.assignment.service_key, "pool_id": pool_id, "source": "labels", "assignment": &publication.assignment, "hosts": &publication.hosts, "certificate_id": certificate_id, "certificate_mismatch": certificate_mismatch}));
|
||||||
}
|
}
|
||||||
let pools = snapshot
|
let pools = snapshot
|
||||||
.pools
|
.pools
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ function translate() {
|
|||||||
if (envelope) renderConfig(); renderConfigStorage(); if (latestStatus) { renderFooter(latestStatus); renderDiagnostics(latestStatus, false); window.rustProxyVhosts?.renderStatus(latestStatus); window.rustProxyDocker?.renderStatus(latestStatus); window.rustProxyStreams?.renderStatus(latestStatus); window.rustProxyStreamDashboard?.render(latestStatus); window.rustProxyDockerDashboard?.render(latestStatus, null, false); window.rustProxyBackendDashboard?.render(latestStatus, null, false); window.rustProxyExtraOverview?.render(latestStatus, false); window.rustProxyWideOverview?.render(latestStatus, false); window.rustProxyWebOverview?.render(latestStatus, false); } if (lastLogs) renderLogs(lastLogs);
|
if (envelope) renderConfig(); renderConfigStorage(); if (latestStatus) { renderFooter(latestStatus); renderDiagnostics(latestStatus, false); window.rustProxyVhosts?.renderStatus(latestStatus); window.rustProxyDocker?.renderStatus(latestStatus); window.rustProxyStreams?.renderStatus(latestStatus); window.rustProxyStreamDashboard?.render(latestStatus); window.rustProxyDockerDashboard?.render(latestStatus, null, false); window.rustProxyBackendDashboard?.render(latestStatus, null, false); window.rustProxyExtraOverview?.render(latestStatus, false); window.rustProxyWideOverview?.render(latestStatus, false); window.rustProxyWebOverview?.render(latestStatus, false); } if (lastLogs) renderLogs(lastLogs);
|
||||||
syncSettingsDirtyIndicators();
|
syncSettingsDirtyIndicators();
|
||||||
window.rustProxyIcons?.refresh?.();
|
window.rustProxyIcons?.refresh?.();
|
||||||
|
rustProxyAutoId.repaintAll();
|
||||||
}
|
}
|
||||||
function toastNode() {
|
function toastNode() {
|
||||||
let node = document.getElementById("toast");
|
let node = document.getElementById("toast");
|
||||||
@@ -728,7 +729,7 @@ $("export-config").addEventListener("click", () => { const url = URL.createObjec
|
|||||||
|
|
||||||
const rustProxyAutoId = (() => {
|
const rustProxyAutoId = (() => {
|
||||||
const FOLD = { "ł": "l", "đ": "d", "ø": "o", "ß": "ss", "æ": "ae", "œ": "oe", "þ": "th", "ð": "d" };
|
const FOLD = { "ł": "l", "đ": "d", "ø": "o", "ß": "ss", "æ": "ae", "œ": "oe", "þ": "th", "ð": "d" };
|
||||||
const states = new WeakMap();
|
const states = new WeakMap(), registry = new Set();
|
||||||
function slugify(value, max = 64) {
|
function slugify(value, max = 64) {
|
||||||
let slug = String(value ?? "").trim().toLowerCase().replace(/^\*\./, "").replace(/[łđøßæœþð]/g, ch => FOLD[ch]).normalize("NFKD").replace(/[̀-ͯ]/g, "");
|
let slug = String(value ?? "").trim().toLowerCase().replace(/^\*\./, "").replace(/[łđøßæœþð]/g, ch => FOLD[ch]).normalize("NFKD").replace(/[̀-ͯ]/g, "");
|
||||||
slug = slug.replace(/[^a-z0-9_-]+/g, "-").replace(/-{2,}/g, "-").replace(/^[-_]+/, "").slice(0, max).replace(/[-_]+$/, "");
|
slug = slug.replace(/[^a-z0-9_-]+/g, "-").replace(/-{2,}/g, "-").replace(/^[-_]+/, "").slice(0, max).replace(/[-_]+$/, "");
|
||||||
@@ -753,34 +754,63 @@ const rustProxyAutoId = (() => {
|
|||||||
state.row.hidden = !compact;
|
state.row.hidden = !compact;
|
||||||
state.hint.hidden = compact || !state.auto; state.hint.textContent = t("autoIdHint");
|
state.hint.hidden = compact || !state.auto; state.hint.textContent = t("autoIdHint");
|
||||||
state.reset.hidden = compact || state.auto || state.resettable === false || !wanted || wanted === value; state.reset.textContent = t("autoIdReset");
|
state.reset.hidden = compact || state.auto || state.resettable === false || !wanted || wanted === value; state.reset.textContent = t("autoIdReset");
|
||||||
|
const reason = typeof state.lockedReason === "function" ? state.lockedReason() : state.lockedReason;
|
||||||
|
state.lock.hidden = !reason; state.lock.textContent = reason || "";
|
||||||
|
state.renameNote.hidden = !state.renameKey || !state.open || isLocked; state.renameNote.textContent = state.renameKey ? t(state.renameKey) : "";
|
||||||
}
|
}
|
||||||
function regenerate(input, state) { if (!state.auto || locked(input)) return; input.value = suggestion(state); input.setCustomValidity?.(""); paint(input, state); }
|
function regenerate(input, state) { if (!state.auto || locked(input)) return; input.value = suggestion(state); input.setCustomValidity?.(""); paint(input, state); }
|
||||||
function attach(input, options) {
|
function attach(input, options) {
|
||||||
let state = states.get(input);
|
let state = states.get(input);
|
||||||
if (!state) {
|
if (!state) {
|
||||||
state = { auto: true, open: false, holder: input.closest("label") || input.parentElement, hint: document.createElement("small"), reset: document.createElement("button"), row: document.createElement("div"), value: document.createElement("code"), badge: document.createElement("span"), change: document.createElement("button") };
|
state = { auto: true, open: false, holder: input.closest("label") || input.parentElement, hint: document.createElement("small"), reset: document.createElement("button"), row: document.createElement("div"), value: document.createElement("code"), badge: document.createElement("span"), change: document.createElement("button"), lock: document.createElement("small"), renameNote: document.createElement("small") };
|
||||||
|
state.lock.className = "fine auto-id-lock"; state.renameNote.className = "fine auto-id-rename-note";
|
||||||
state.holder.classList.add("auto-id-field");
|
state.holder.classList.add("auto-id-field");
|
||||||
state.hint.className = "fine auto-id-hint"; state.reset.type = "button"; state.reset.className = "quiet auto-id-reset";
|
state.hint.className = "fine auto-id-hint"; state.reset.type = "button"; state.reset.className = "quiet auto-id-reset";
|
||||||
state.row.className = "auto-id-row"; state.value.className = "auto-id-value"; state.badge.className = "auto-id-badge"; state.change.type = "button"; state.change.className = "quiet auto-id-change";
|
state.row.className = "auto-id-row"; state.value.className = "auto-id-value"; state.badge.className = "auto-id-badge"; state.change.type = "button"; state.change.className = "quiet auto-id-change";
|
||||||
state.row.append(state.value, state.badge, state.change); state.holder.append(state.row, state.hint, state.reset);
|
state.row.append(state.value, state.badge, state.change, state.lock); state.holder.append(state.row, state.hint, state.reset, state.renameNote);
|
||||||
input.addEventListener("input", event => { if (!event.isTrusted) return; state.auto = input.value.trim() === ""; if (state.auto) regenerate(input, state); else paint(input, state); });
|
input.addEventListener("input", event => { if (!event.isTrusted) return; state.auto = input.value.trim() === ""; if (state.auto) regenerate(input, state); else paint(input, state); });
|
||||||
input.addEventListener("invalid", () => { if (!state.open) { state.open = true; paint(input, state); } });
|
input.addEventListener("invalid", () => { if (!state.open) { state.open = true; paint(input, state); } });
|
||||||
input.addEventListener("blur", () => { if (input.value.trim() && input.validity.valid) { state.open = false; paint(input, state); } });
|
input.addEventListener("blur", () => { if (input.value.trim() && input.validity.valid) { state.open = false; paint(input, state); } });
|
||||||
state.change.addEventListener("click", () => { state.open = true; paint(input, state); input.focus(); input.select?.(); });
|
state.change.addEventListener("click", () => { state.open = true; paint(input, state); input.focus(); input.select?.(); });
|
||||||
state.reset.addEventListener("mousedown", event => event.preventDefault());
|
state.reset.addEventListener("mousedown", event => event.preventDefault());
|
||||||
state.reset.addEventListener("click", () => { state.auto = true; regenerate(input, state); input.dispatchEvent(new Event("input", { bubbles: true })); });
|
state.reset.addEventListener("click", () => { state.auto = true; regenerate(input, state); input.dispatchEvent(new Event("input", { bubbles: true })); });
|
||||||
states.set(input, state);
|
states.set(input, state); registry.add(new WeakRef(input));
|
||||||
for (const source of options.elements || []) source.addEventListener("input", () => { const current = states.get(input); if (current) regenerate(input, current); });
|
for (const source of options.elements || []) source.addEventListener("input", () => { const current = states.get(input); if (current) regenerate(input, current); });
|
||||||
}
|
}
|
||||||
state.text = options.text || (() => (options.elements || []).map(node => node.value).find(value => value.trim()) || "");
|
state.text = options.text || (() => (options.elements || []).map(node => node.value).find(value => value.trim()) || "");
|
||||||
state.taken = options.taken || (() => []); state.resettable = options.resettable;
|
state.taken = options.taken || (() => []); state.resettable = options.resettable;
|
||||||
|
if (options.original) {
|
||||||
|
const refs = options.inUse ? options.inUse(options.original) : [];
|
||||||
|
if (refs.length) { input.readOnly = true; state.lockedByRefs = true; } else if (state.lockedByRefs) { input.readOnly = false; state.lockedByRefs = false; }
|
||||||
|
state.lockedReason = refs.length ? () => `${t("idRenameLocked")}: ${refs.slice(0, 4).join(", ")}${refs.length > 4 ? ` +${refs.length - 4}` : ""}` : null;
|
||||||
|
state.renameKey = refs.length ? null : (options.renameKey || "idRenameHelp");
|
||||||
|
} else { state.lockedReason = null; state.renameKey = null; if (state.lockedByRefs) { input.readOnly = false; state.lockedByRefs = false; } }
|
||||||
state.auto = !locked(input) && input.value.trim() === ""; state.open = false;
|
state.auto = !locked(input) && input.value.trim() === ""; state.open = false;
|
||||||
paint(input, state);
|
paint(input, state);
|
||||||
return { refresh() { const current = states.get(input); if (current) regenerate(input, current); } };
|
return { refresh() { const current = states.get(input); if (current) regenerate(input, current); } };
|
||||||
}
|
}
|
||||||
return { slugify, unique, attach };
|
function repaintAll() { for (const ref of [...registry]) { const input = ref.deref(); if (!input || !input.isConnected) { if (!input) registry.delete(ref); continue; } const state = states.get(input); if (state) paint(input, state); } }
|
||||||
|
return { slugify, unique, attach, repaintAll };
|
||||||
})();
|
})();
|
||||||
window.rustProxyAutoId = rustProxyAutoId;
|
window.rustProxyAutoId = rustProxyAutoId;
|
||||||
|
function configReferences(id, keys) {
|
||||||
|
const config = envelope?.config || {}, found = [], wanted = new Set(keys);
|
||||||
|
const labelFor = (top, item) => `${t(`refSection_${top}`) === `refSection_${top}` ? top : t(`refSection_${top}`)}: ${item?.id || item?.name || "?"}`;
|
||||||
|
const walk = (node, top, item) => {
|
||||||
|
if (Array.isArray(node)) { for (const child of node) walk(child, top, item); return; }
|
||||||
|
if (!node || typeof node !== "object") return;
|
||||||
|
for (const [key, value] of Object.entries(node)) {
|
||||||
|
if (wanted.has(key) && (value === id || (Array.isArray(value) && value.includes(id)))) { const label = labelFor(top, item); if (!found.includes(label)) found.push(label); }
|
||||||
|
else if (value && typeof value === "object") walk(value, top, item);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
for (const [top, section] of Object.entries(config)) {
|
||||||
|
if (Array.isArray(section)) for (const item of section) walk(item, top, item);
|
||||||
|
else if (section && typeof section === "object") for (const [key, value] of Object.entries(section)) { if (Array.isArray(value)) for (const item of value) walk(item, `${top}.${key}`, item); else if (wanted.has(key) && value === id) found.push(key === "default_certificate" ? t("certificateDefaultSni") : t(`refSection_${top}`) === `refSection_${top}` ? top : t(`refSection_${top}`)); else walk(value, top, null); }
|
||||||
|
}
|
||||||
|
return found;
|
||||||
|
}
|
||||||
|
window.rustProxyConfigReferences = configReferences;
|
||||||
|
|
||||||
const rustProxyAutoCertificate = (() => {
|
const rustProxyAutoCertificate = (() => {
|
||||||
const states = new WeakMap();
|
const states = new WeakMap();
|
||||||
|
|||||||
@@ -70,18 +70,32 @@ function certificateUsage(cert) {
|
|||||||
vhosts: (config.vhosts || []).filter(item => item.certificate_id === cert.id).map(item => ({ id: item.id, hosts: hostsOf(item), mismatch: item.allow_certificate_mismatch === true, open: () => { setPanel("vhosts"); window.rustProxyVhosts?.edit(item.id); } })),
|
vhosts: (config.vhosts || []).filter(item => item.certificate_id === cert.id).map(item => ({ id: item.id, hosts: hostsOf(item), mismatch: item.allow_certificate_mismatch === true, open: () => { setPanel("vhosts"); window.rustProxyVhosts?.edit(item.id); } })),
|
||||||
redirects: (config.redirects || []).filter(item => item.certificate_id === cert.id).map(item => ({ id: item.id, hosts: hostsOf(item), open: () => { setPanel("redirects"); window.rustProxyRedirects?.edit(item.id); } })),
|
redirects: (config.redirects || []).filter(item => item.certificate_id === cert.id).map(item => ({ id: item.id, hosts: hostsOf(item), open: () => { setPanel("redirects"); window.rustProxyRedirects?.edit(item.id); } })),
|
||||||
notfound: (config.not_found_hosts || []).filter(item => item.certificate_id === cert.id).map(item => ({ id: item.id, hosts: hostsOf(item), open: () => { setPanel("notfound"); window.rustProxyNotFound?.edit(item.id); } })),
|
notfound: (config.not_found_hosts || []).filter(item => item.certificate_id === cert.id).map(item => ({ id: item.id, hosts: hostsOf(item), open: () => { setPanel("notfound"); window.rustProxyNotFound?.edit(item.id); } })),
|
||||||
docker: (config.docker_agents?.agents || []).filter(agent => [agent.certificate_id, ...(agent.certificate_ids || [])].includes(cert.id)).map(agent => ({ id: agent.id, hosts: agent.domains || [], open: () => setPanel("settings") }))
|
dockerVhosts: certificateDockerRoutes().filter(route => route.certificate_id === cert.id).map(route => ({ id: `${route.agent_id} · ${route.service_key}`, hosts: route.hosts || [], mismatch: route.certificate_mismatch === true, docker: true, open: () => { setPanel("docker-vhosts"); const search = $("docker-search"); if (search) { search.value = (route.hosts || [])[0] || route.service_key; search.dispatchEvent(new Event("input", { bubbles: true })); } } })),
|
||||||
|
docker: (config.docker_agents?.agents || []).filter(agent => [agent.certificate_id, ...(agent.certificate_ids || [])].includes(cert.id)).map(agent => ({ id: agent.id, hosts: agent.domains || [], open: () => { setPanel("settings"); window.rustProxySettings?.select?.("docker-agents"); } }))
|
||||||
};
|
};
|
||||||
const legacy = [];
|
const legacy = [];
|
||||||
for (const item of config.vhosts || []) if (item.certificate_id === cert.id) legacy.push(`vhost:${item.id}`);
|
for (const item of config.vhosts || []) if (item.certificate_id === cert.id) legacy.push(`vhost:${item.id}`);
|
||||||
for (const item of config.redirects || []) if (item.certificate_id === cert.id) legacy.push(`redirect:${item.id}`);
|
for (const item of config.redirects || []) if (item.certificate_id === cert.id) legacy.push(`redirect:${item.id}`);
|
||||||
for (const item of config.not_found_hosts || []) if (item.certificate_id === cert.id) legacy.push(`404:${item.id}`);
|
for (const item of config.not_found_hosts || []) if (item.certificate_id === cert.id) legacy.push(`404:${item.id}`);
|
||||||
|
for (const route of certificateDockerRoutes()) if (route.certificate_id === cert.id) legacy.push(`docker:${route.agent_id}/${route.service_key}`);
|
||||||
const admin = config.administration?.certificate_id === cert.id, isDefault = settings.default_certificate === cert.id;
|
const admin = config.administration?.certificate_id === cert.id, isDefault = settings.default_certificate === cert.id;
|
||||||
if (admin) legacy.push(t("administration"));
|
if (admin) legacy.push(t("administration"));
|
||||||
if (isDefault) legacy.push(t("defaultLabel"));
|
if (isDefault) legacy.push(t("defaultLabel"));
|
||||||
const count = groups.vhosts.length + groups.redirects.length + groups.notfound.length + (admin ? 1 : 0) + (isDefault ? 1 : 0);
|
const count = groups.vhosts.length + groups.dockerVhosts.length + groups.redirects.length + groups.notfound.length + (admin ? 1 : 0) + (isDefault ? 1 : 0);
|
||||||
return { groups, admin, isDefault, legacy, count, inUse: legacy.length > 0 };
|
return { groups, admin, isDefault, legacy, count, inUse: legacy.length > 0 };
|
||||||
}
|
}
|
||||||
|
let certificateDockerState = { routes: [], loadedAt: 0, loading: false };
|
||||||
|
function certificateDockerRoutes() {
|
||||||
|
const fromPanel = window.rustProxyDocker?.routes?.() || [];
|
||||||
|
if (fromPanel.length) return fromPanel;
|
||||||
|
const agents = envelope?.config.docker_agents?.agents || [];
|
||||||
|
if (agents.length && !certificateDockerState.loading && Date.now() - certificateDockerState.loadedAt > 30000) {
|
||||||
|
certificateDockerState.loading = true;
|
||||||
|
api("/api/docker").then(data => { certificateDockerState.routes = data.pool_routes || []; certificateDockerState.loadedAt = Date.now(); certificateDockerState.loading = false; if (certificateDockerState.routes.length) renderCertificates(); })
|
||||||
|
.catch(() => { certificateDockerState.loadedAt = Date.now(); certificateDockerState.loading = false; });
|
||||||
|
}
|
||||||
|
return certificateDockerState.routes;
|
||||||
|
}
|
||||||
function certificateCoverage(cert) {
|
function certificateCoverage(cert) {
|
||||||
const inventory = certificateInventory.get(cert.id);
|
const inventory = certificateInventory.get(cert.id);
|
||||||
return inventory?.covered_hosts?.length ? inventory.covered_hosts : (cert.covered_hosts || []);
|
return inventory?.covered_hosts?.length ? inventory.covered_hosts : (cert.covered_hosts || []);
|
||||||
@@ -110,16 +124,16 @@ function formatDate(ms) { try { return new Date(ms).toLocaleDateString(typeof la
|
|||||||
function renderCertificateSummary(certificates) {
|
function renderCertificateSummary(certificates) {
|
||||||
const box = $("certificate-summary"); if (!box) return;
|
const box = $("certificate-summary"); if (!box) return;
|
||||||
const settings = envelope?.config.tls || {};
|
const settings = envelope?.config.tls || {};
|
||||||
let acme = 0, external = 0, managedFiles = 0, expiring = [], assignments = 0, vhostCount = 0, redirectCount = 0, notfoundCount = 0;
|
let acme = 0, external = 0, managedFiles = 0, expiring = [], assignments = 0, vhostCount = 0, dockerCount = 0, redirectCount = 0, notfoundCount = 0;
|
||||||
for (const cert of certificates) {
|
for (const cert of certificates) {
|
||||||
if (cert.issuer) acme++; else if (certificateUsesExternalFiles(cert)) external++; else managedFiles++;
|
if (cert.issuer) acme++; else if (certificateUsesExternalFiles(cert)) external++; else managedFiles++;
|
||||||
const inventory = certificateInventory.get(cert.id);
|
const inventory = certificateInventory.get(cert.id);
|
||||||
if (["warning", "expired"].includes(inventory?.expiry_status)) expiring.push(`${cert.id} · ${inventory?.days_remaining ?? "-"} ${t("certificateDaysShort")}`);
|
if (["warning", "expired"].includes(inventory?.expiry_status)) expiring.push(`${cert.id} · ${inventory?.days_remaining ?? "-"} ${t("certificateDaysShort")}`);
|
||||||
const usage = certificateUsage(cert); assignments += usage.count; vhostCount += usage.groups.vhosts.length; redirectCount += usage.groups.redirects.length; notfoundCount += usage.groups.notfound.length;
|
const usage = certificateUsage(cert); assignments += usage.count; vhostCount += usage.groups.vhosts.length; dockerCount += usage.groups.dockerVhosts.length; redirectCount += usage.groups.redirects.length; notfoundCount += usage.groups.notfound.length;
|
||||||
}
|
}
|
||||||
const tile = (value, titleKey, line, tone, filter) => {
|
const tile = (value, titleKey, line, tone, filter) => {
|
||||||
const node = el(filter ? "button" : "div", undefined, `cert-summary-tile${tone ? ` is-${tone}` : ""}`);
|
const node = el(filter ? "button" : "div", undefined, `cert-summary-tile${tone ? ` is-${tone}` : ""}`);
|
||||||
if (filter) { node.type = "button"; node.dataset.uiIconName = "none"; node.addEventListener("click", () => { window.rustProxyAcme?.select("installed"); setCertificateFilter(filter); }); }
|
if (filter) { node.type = "button"; node.dataset.uiIconName = "none"; node.addEventListener("click", () => { window.rustProxyCertificates?.select("installed"); setCertificateFilter(filter); }); }
|
||||||
const title = el("span", t(titleKey)); title.dataset.i18n = titleKey;
|
const title = el("span", t(titleKey)); title.dataset.i18n = titleKey;
|
||||||
node.append(el("b", value), title, el("small", line)); return node;
|
node.append(el("b", value), title, el("small", line)); return node;
|
||||||
};
|
};
|
||||||
@@ -127,7 +141,7 @@ function renderCertificateSummary(certificates) {
|
|||||||
box.replaceChildren(
|
box.replaceChildren(
|
||||||
tile(String(certificates.length), "certificateSummaryCount", `${acme} ACME · ${external} ${t("certificateSummaryExternal")} · ${managedFiles} ${t("certificateSummaryManaged")}`, certificates.length ? "ok" : "", "all"),
|
tile(String(certificates.length), "certificateSummaryCount", `${acme} ACME · ${external} ${t("certificateSummaryExternal")} · ${managedFiles} ${t("certificateSummaryManaged")}`, certificates.length ? "ok" : "", "all"),
|
||||||
tile(String(expiring.length), "certificateSummaryExpiring", expiring.length ? expiring.slice(0, 2).join(", ") : t("certificateSummaryNothingExpiring"), expiring.length ? "warn" : "ok", "expiring"),
|
tile(String(expiring.length), "certificateSummaryExpiring", expiring.length ? expiring.slice(0, 2).join(", ") : t("certificateSummaryNothingExpiring"), expiring.length ? "warn" : "ok", "expiring"),
|
||||||
tile(String(assignments), "certificateSummaryAssignments", `${vhostCount} vhost · ${redirectCount} ${t("certificateSummaryRedirects")} · ${notfoundCount} 404${settings.default_certificate ? ` · ${t("defaultLabel")}: ${settings.default_certificate}` : ""}`, "", "unassigned"),
|
tile(String(assignments), "certificateSummaryAssignments", `${vhostCount} vhost${dockerCount ? ` · ${dockerCount} Docker` : ""} · ${redirectCount} ${t("certificateSummaryRedirects")} · ${notfoundCount} 404${settings.default_certificate ? ` · ${t("defaultLabel")}: ${settings.default_certificate}` : ""}`, "", "assigned"),
|
||||||
tile(runtime || "-", "certificateSummaryRuntime", $("acme-runtime-components")?.textContent || "", $("acme-runtime-card")?.dataset.state === "ready" ? "ok" : $("acme-runtime-card")?.dataset.state === "unavailable" ? "bad" : "")
|
tile(runtime || "-", "certificateSummaryRuntime", $("acme-runtime-components")?.textContent || "", $("acme-runtime-card")?.dataset.state === "ready" ? "ok" : $("acme-runtime-card")?.dataset.state === "unavailable" ? "bad" : "")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -141,7 +155,7 @@ function applyCertificateFilter() {
|
|||||||
let shown = 0;
|
let shown = 0;
|
||||||
for (const row of document.querySelectorAll("#certificate-list > .certificate-row")) {
|
for (const row of document.querySelectorAll("#certificate-list > .certificate-row")) {
|
||||||
const matchesQuery = !query || row.dataset.search.includes(query);
|
const matchesQuery = !query || row.dataset.search.includes(query);
|
||||||
const matchesFilter = certificateFilter === "all" || (certificateFilter === "expiring" && row.dataset.expiring === "true") || (certificateFilter === "unassigned" && row.dataset.assigned === "false");
|
const matchesFilter = certificateFilter === "all" || (certificateFilter === "expiring" && row.dataset.expiring === "true") || (certificateFilter === "unassigned" && row.dataset.assigned === "false") || (certificateFilter === "assigned" && row.dataset.assigned === "true");
|
||||||
row.hidden = !(matchesQuery && matchesFilter); if (!row.hidden) shown++;
|
row.hidden = !(matchesQuery && matchesFilter); if (!row.hidden) shown++;
|
||||||
}
|
}
|
||||||
const empty = $("certificate-list-filtered-empty");
|
const empty = $("certificate-list-filtered-empty");
|
||||||
@@ -161,7 +175,7 @@ function renderCertificates() {
|
|||||||
box.dataset.certificateId = cert.id;
|
box.dataset.certificateId = cert.id;
|
||||||
box.dataset.expiring = String(["warning", "expired"].includes(inventory?.expiry_status));
|
box.dataset.expiring = String(["warning", "expired"].includes(inventory?.expiry_status));
|
||||||
box.dataset.assigned = String(usage.count > 0);
|
box.dataset.assigned = String(usage.count > 0);
|
||||||
box.dataset.search = [cert.id, ...coverage, ...bindings, ...usage.groups.vhosts.map(item => item.id), ...usage.groups.redirects.map(item => item.id), ...usage.groups.notfound.map(item => item.id)].join(" ").toLowerCase();
|
box.dataset.search = [cert.id, ...coverage, ...bindings, ...usage.groups.vhosts.map(item => item.id), ...usage.groups.dockerVhosts.flatMap(item => [item.id, ...item.hosts]), ...usage.groups.redirects.map(item => item.id), ...usage.groups.notfound.map(item => item.id)].join(" ").toLowerCase();
|
||||||
box.open = certificateOpenRows.has(cert.id);
|
box.open = certificateOpenRows.has(cert.id);
|
||||||
box.addEventListener("toggle", () => { if (box.open) certificateOpenRows.add(cert.id); else certificateOpenRows.delete(cert.id); });
|
box.addEventListener("toggle", () => { if (box.open) certificateOpenRows.add(cert.id); else certificateOpenRows.delete(cert.id); });
|
||||||
const summary = el("summary", undefined, "certificate-row-summary");
|
const summary = el("summary", undefined, "certificate-row-summary");
|
||||||
@@ -186,6 +200,7 @@ function renderCertificates() {
|
|||||||
const usageCell = el("div", undefined, "certificate-usage-cell");
|
const usageCell = el("div", undefined, "certificate-usage-cell");
|
||||||
const usageParts = [];
|
const usageParts = [];
|
||||||
if (usage.groups.vhosts.length) usageParts.push(`${usage.groups.vhosts.length} vhost`);
|
if (usage.groups.vhosts.length) usageParts.push(`${usage.groups.vhosts.length} vhost`);
|
||||||
|
if (usage.groups.dockerVhosts.length) usageParts.push(`${usage.groups.dockerVhosts.length} Docker`);
|
||||||
if (usage.groups.redirects.length) usageParts.push(`${usage.groups.redirects.length} ${t("certificateSummaryRedirects")}`);
|
if (usage.groups.redirects.length) usageParts.push(`${usage.groups.redirects.length} ${t("certificateSummaryRedirects")}`);
|
||||||
if (usage.groups.notfound.length) usageParts.push(`${usage.groups.notfound.length} 404`);
|
if (usage.groups.notfound.length) usageParts.push(`${usage.groups.notfound.length} 404`);
|
||||||
if (usage.admin) usageParts.push(t("administration"));
|
if (usage.admin) usageParts.push(t("administration"));
|
||||||
@@ -198,7 +213,7 @@ function renderCertificates() {
|
|||||||
const usageSection = el("section", undefined, "certificate-section certificate-usage");
|
const usageSection = el("section", undefined, "certificate-section certificate-usage");
|
||||||
const usageHead = el("h4"); usageHead.append(el("span", t("certificateWhereUsed")), el("span", String(usage.count), "pill"));
|
const usageHead = el("h4"); usageHead.append(el("span", t("certificateWhereUsed")), el("span", String(usage.count), "pill"));
|
||||||
usageSection.append(usageHead);
|
usageSection.append(usageHead);
|
||||||
const groupDefs = [["vhosts", "certificateGroupVhosts"], ["redirects", "certificateGroupRedirects"], ["notfound", "certificateGroupNotFound"], ["docker", "certificateGroupDocker"]];
|
const groupDefs = [["vhosts", "certificateGroupVhosts"], ["dockerVhosts", "certificateGroupDockerVhosts"], ["redirects", "certificateGroupRedirects"], ["notfound", "certificateGroupNotFound"], ["docker", "certificateGroupDocker"]];
|
||||||
let anyUsage = false;
|
let anyUsage = false;
|
||||||
for (const [key, labelKey] of groupDefs) {
|
for (const [key, labelKey] of groupDefs) {
|
||||||
const items = usage.groups[key]; if (!items.length) continue; anyUsage = true;
|
const items = usage.groups[key]; if (!items.length) continue; anyUsage = true;
|
||||||
@@ -239,7 +254,7 @@ function renderCertificates() {
|
|||||||
["renewalLast", stamp(inventory?.last_renewal_attempt)],
|
["renewalLast", stamp(inventory?.last_renewal_attempt)],
|
||||||
["certificateRenewalError", inventory?.last_renewal_error ? t(inventory.last_renewal_error) : "-"]
|
["certificateRenewalError", inventory?.last_renewal_error ? t(inventory.last_renewal_error) : "-"]
|
||||||
]));
|
]));
|
||||||
if (managed) { const link = el("button", t("certificateRenewalActionsLink"), "quiet"); link.type = "button"; link.dataset.uiIconName = "none"; link.addEventListener("click", () => window.rustProxyAcme?.select("renewal")); renewal.append(link); }
|
if (managed) { const link = el("button", t("certificateRenewalActionsLink"), "quiet"); link.type = "button"; link.dataset.uiIconName = "none"; link.addEventListener("click", () => window.rustProxyCertificates?.select("renewal")); renewal.append(link); }
|
||||||
const files = el("section", undefined, "certificate-section certificate-files");
|
const files = el("section", undefined, "certificate-section certificate-files");
|
||||||
files.append(el("h4", t("certificateFiles")), el("p", `${cert.cert_file}\n${cert.key_file}`, "mono certificate-file-paths"));
|
files.append(el("h4", t("certificateFiles")), el("p", `${cert.cert_file}\n${cert.key_file}`, "mono certificate-file-paths"));
|
||||||
const buttons = el("div", undefined, "entity-actions");
|
const buttons = el("div", undefined, "entity-actions");
|
||||||
@@ -260,7 +275,7 @@ function renderCertificates() {
|
|||||||
}));
|
}));
|
||||||
buttons.append(action(t("edit"), () => {
|
buttons.append(action(t("edit"), () => {
|
||||||
window.rustProxyCertificates?.open("existing"); $("certificate-advanced").open = true;
|
window.rustProxyCertificates?.open("existing"); $("certificate-advanced").open = true;
|
||||||
$("certificate-id").value = cert.id; $("certificate-hosts").value = (cert.hosts || []).join(", ");
|
$("certificate-id").value = cert.id; $("certificate-hosts").value = (cert.hosts || []).join(", "); attachCertificateId(cert.id);
|
||||||
$("certificate-file-source").value = certificateUsesExternalFiles(cert) ? "external" : "managed";
|
$("certificate-file-source").value = certificateUsesExternalFiles(cert) ? "external" : "managed";
|
||||||
$("certificate-file").value = cert.cert_file; $("certificate-key").value = cert.key_file;
|
$("certificate-file").value = cert.cert_file; $("certificate-key").value = cert.key_file;
|
||||||
$("certificate-default").checked = settings.default_certificate === cert.id;
|
$("certificate-default").checked = settings.default_certificate === cert.id;
|
||||||
@@ -355,6 +370,13 @@ $("certificate-assign-apply")?.addEventListener("click", async () => {
|
|||||||
});
|
});
|
||||||
$("certificate-search")?.addEventListener("input", applyCertificateFilter);
|
$("certificate-search")?.addEventListener("input", applyCertificateFilter);
|
||||||
for (const button of document.querySelectorAll("[data-certificate-filter]")) button.addEventListener("click", () => setCertificateFilter(button.dataset.certificateFilter));
|
for (const button of document.querySelectorAll("[data-certificate-filter]")) button.addEventListener("click", () => setCertificateFilter(button.dataset.certificateFilter));
|
||||||
|
let certificateEditingId = null;
|
||||||
|
function attachCertificateId(original = null) {
|
||||||
|
certificateEditingId = original;
|
||||||
|
window.rustProxyAutoId.attach($("certificate-id"), { elements: [$("certificate-hosts")], text: () => ($("certificate-hosts").value.split(",").map(v => v.trim()).find(Boolean) || ""), taken: () => (envelope?.config.tls?.certificates || []).map(cert => cert.id).filter(id => id !== original), original, inUse: id => configReferences(id, ["certificate_id", "certificate_ids", "default_certificate"]), renameKey: "idRenameHelpCertificate" });
|
||||||
|
}
|
||||||
|
$("certificate-form")?.addEventListener("reset", () => setTimeout(() => attachCertificateId(null)));
|
||||||
|
attachCertificateId(null);
|
||||||
$("certificate-form").addEventListener("submit", async event => {
|
$("certificate-form").addEventListener("submit", async event => {
|
||||||
event.preventDefault(); const form = event.currentTarget;
|
event.preventDefault(); const form = event.currentTarget;
|
||||||
if (!envelope || busy) return;
|
if (!envelope || busy) return;
|
||||||
@@ -370,6 +392,13 @@ $("certificate-form").addEventListener("submit", async event => {
|
|||||||
hosts: $("certificate-hosts").value.split(",").map(v => v.trim()).filter(Boolean),
|
hosts: $("certificate-hosts").value.split(",").map(v => v.trim()).filter(Boolean),
|
||||||
cert_file: $("certificate-file").value.trim(), key_file: $("certificate-key").value.trim(),
|
cert_file: $("certificate-file").value.trim(), key_file: $("certificate-key").value.trim(),
|
||||||
};
|
};
|
||||||
|
const original = certificateEditingId && next.tls.certificates.some(v => v.id === certificateEditingId) ? certificateEditingId : null;
|
||||||
|
if (original && original !== cert.id) {
|
||||||
|
if (next.tls.certificates.some(v => v.id === cert.id)) throw fieldError($("certificate-id"), t("certificateDuplicate"));
|
||||||
|
if (configReferences(original, ["certificate_id", "certificate_ids", "default_certificate"]).length) throw fieldError($("certificate-id"), t("idRenameLocked"));
|
||||||
|
next.tls.certificates.find(v => v.id === original).id = cert.id;
|
||||||
|
if (next.tls.default_certificate === original) next.tls.default_certificate = cert.id;
|
||||||
|
}
|
||||||
const index = next.tls.certificates.findIndex(v => v.id === cert.id);
|
const index = next.tls.certificates.findIndex(v => v.id === cert.id);
|
||||||
if (index >= 0 && next.tls.certificates[index].issuer) throw fieldError($("certificate-id"), t("certManagedReadOnly"));
|
if (index >= 0 && next.tls.certificates[index].issuer) throw fieldError($("certificate-id"), t("certManagedReadOnly"));
|
||||||
if (index < 0) next.tls.certificates.push(cert);
|
if (index < 0) next.tls.certificates.push(cert);
|
||||||
|
|||||||
@@ -1329,6 +1329,7 @@ dialog .vh-form,
|
|||||||
#panel-vhosts .card-heading,
|
#panel-vhosts .card-heading,
|
||||||
#panel-web-server .card-heading,
|
#panel-web-server .card-heading,
|
||||||
#panel-streams .card-heading,
|
#panel-streams .card-heading,
|
||||||
|
#panel-acl-profiles .card-heading,
|
||||||
.activity-card .card-heading,
|
.activity-card .card-heading,
|
||||||
.overview-presets-dialog .overview-layout-footer,
|
.overview-presets-dialog .overview-layout-footer,
|
||||||
.cache-memory-sizing .form-actions {
|
.cache-memory-sizing .form-actions {
|
||||||
@@ -1339,7 +1340,8 @@ dialog .vh-form,
|
|||||||
#redirect-search,
|
#redirect-search,
|
||||||
#vhost-search,
|
#vhost-search,
|
||||||
#web-service-search,
|
#web-service-search,
|
||||||
#stream-search {
|
#stream-search,
|
||||||
|
#acl-profile-search {
|
||||||
width: calc(min(260px, calc(32 * var(--rp-vw))));
|
width: calc(min(260px, calc(32 * var(--rp-vw))));
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1133,7 +1133,7 @@ p,
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
grid-template-columns: minmax(260px, .72fr) minmax(440px, 1.28fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
}
|
}
|
||||||
|
|
||||||
.host-chip-field>span:first-child {
|
.host-chip-field>span:first-child {
|
||||||
@@ -1838,10 +1838,6 @@ html[data-dashboard-density=ultra] #panel-overview .dashboard-overview-grid>.car
|
|||||||
font: 700 10px var(--mono);
|
font: 700 10px var(--mono);
|
||||||
}
|
}
|
||||||
|
|
||||||
.acl-profile-card .entity-details {
|
|
||||||
white-space: pre-line;
|
|
||||||
}
|
|
||||||
|
|
||||||
.listener-active-summary {
|
.listener-active-summary {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
padding: 10px 12px;
|
padding: 10px 12px;
|
||||||
@@ -3099,3 +3095,40 @@ h2+.fine {
|
|||||||
.vh-live-summary.vh-live-summary-tab[hidden] {
|
.vh-live-summary.vh-live-summary-tab[hidden] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vh-grid>[data-row-start] {
|
||||||
|
grid-column-start: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#acl-profile-list {
|
||||||
|
display: grid;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.acl-profile-card .vhost-detail-strip {
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.acl-profile-card .vhost-detail b {
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 761px) {
|
||||||
|
.acl-profile-card .vhost-card-head {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.acl-profile-dialog {
|
||||||
|
width: calc((calc(min(1080px, 100vw - 28px))) / var(--ui-scale, 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.acl-profile-dialog #acl-profile-form>.card-heading {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.acl-profile-dialog #acl-profile-form>.card-heading>h2 {
|
||||||
|
margin: 0 auto 0 0;
|
||||||
|
}
|
||||||
@@ -844,6 +844,7 @@
|
|||||||
#panel-vhosts .card-heading,
|
#panel-vhosts .card-heading,
|
||||||
.backend-card-heading,
|
.backend-card-heading,
|
||||||
#panel-streams .card-heading,
|
#panel-streams .card-heading,
|
||||||
|
#panel-acl-profiles .card-heading,
|
||||||
.acl-policy-preview-head,
|
.acl-policy-preview-head,
|
||||||
.acl-policy-step-head {
|
.acl-policy-step-head {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
@@ -859,7 +860,8 @@
|
|||||||
#notfound-search,
|
#notfound-search,
|
||||||
#redirect-search,
|
#redirect-search,
|
||||||
#vhost-search,
|
#vhost-search,
|
||||||
#stream-search {
|
#stream-search,
|
||||||
|
#acl-profile-search {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -1130,6 +1132,7 @@
|
|||||||
@media (max-width:760px) {
|
@media (max-width:760px) {
|
||||||
|
|
||||||
.redirect-card .vhost-detail-strip,
|
.redirect-card .vhost-detail-strip,
|
||||||
|
.acl-profile-card .vhost-detail-strip,
|
||||||
.redirect-rule .vh-grid,
|
.redirect-rule .vh-grid,
|
||||||
.listener-choices,
|
.listener-choices,
|
||||||
.docker-health-grid,
|
.docker-health-grid,
|
||||||
@@ -1983,6 +1986,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.auto-id-hint,
|
.auto-id-hint,
|
||||||
|
.auto-id-lock,
|
||||||
|
.auto-id-rename-note,
|
||||||
.auto-cert-hint {
|
.auto-cert-hint {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
@@ -1999,6 +2004,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.auto-id-hint[hidden],
|
.auto-id-hint[hidden],
|
||||||
|
.auto-id-lock[hidden],
|
||||||
|
.auto-id-rename-note[hidden],
|
||||||
.auto-cert-hint[hidden],
|
.auto-cert-hint[hidden],
|
||||||
.auto-id-reset[hidden] {
|
.auto-id-reset[hidden] {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -2014,12 +2021,18 @@
|
|||||||
|
|
||||||
.auto-id-row {
|
.auto-id-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.auto-id-row>.auto-id-lock {
|
||||||
|
flex: 1 0 100%;
|
||||||
|
margin-top: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
.auto-id-value {
|
.auto-id-value {
|
||||||
font-family: var(--mono, monospace);
|
font-family: var(--mono, monospace);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|||||||
@@ -438,7 +438,7 @@
|
|||||||
const remove = action(t("remove"), () => { row.remove(); setSettingsDirty("docker-agents-form"); }), actions = el("div", undefined, "entity-actions docker-agent-heading-actions");
|
const remove = action(t("remove"), () => { row.remove(); setSettingsDirty("docker-agents-form"); }), actions = el("div", undefined, "entity-actions docker-agent-heading-actions");
|
||||||
const testWrap = el("span", undefined, "docker-agent-test-wrap"), testButton = el("button", t("dockerTestConnection"), "outline docker-agent-test"), testResult = el("div", "", "docker-agent-test-result"); testButton.type = "button"; testResult.hidden = true; testResult.setAttribute("role", "status"); testWrap.append(testButton, testResult);
|
const testWrap = el("span", undefined, "docker-agent-test-wrap"), testButton = el("button", t("dockerTestConnection"), "outline docker-agent-test"), testResult = el("div", "", "docker-agent-test-result"); testButton.type = "button"; testResult.hidden = true; testResult.setAttribute("role", "status"); testWrap.append(testButton, testResult);
|
||||||
actions.append(enabledLabel, stateBadge, testWrap, remove); head.append(title, actions);
|
actions.append(enabledLabel, stateBadge, testWrap, remove); head.append(title, actions);
|
||||||
const id = input(value.id, "text", "docker-agent-id"); id.maxLength = 64; id.required = true; id.pattern = "[A-Za-z0-9_\\-]{1,64}"; if (agent) id.readOnly = true;
|
const id = input(value.id, "text", "docker-agent-id"); id.maxLength = 64; id.required = true; id.pattern = "[A-Za-z0-9_\\-]{1,64}";
|
||||||
const name = input(value.name, "text", "docker-agent-name"); name.maxLength = 96; name.required = true;
|
const name = input(value.name, "text", "docker-agent-name"); name.maxLength = 96; name.required = true;
|
||||||
name.addEventListener("input", () => { titleText.textContent = name.value.trim() || id.value.trim() || t("dockerAgentNew"); });
|
name.addEventListener("input", () => { titleText.textContent = name.value.trim() || id.value.trim() || t("dockerAgentNew"); });
|
||||||
const endpoint = input(value.endpoint, "url", "docker-agent-endpoint"); endpoint.required = true; endpoint.placeholder = "https://10.0.0.20:9876";
|
const endpoint = input(value.endpoint, "url", "docker-agent-endpoint"); endpoint.required = true; endpoint.placeholder = "https://10.0.0.20:9876";
|
||||||
@@ -530,7 +530,7 @@
|
|||||||
row.addEventListener("invalid", () => { row.open = true; }, true);
|
row.addEventListener("invalid", () => { row.open = true; }, true);
|
||||||
const syncSummary = () => { sumEndpoint.textContent = endpoint.value.trim() || "-"; sumId.textContent = id.value.trim(); };
|
const syncSummary = () => { sumEndpoint.textContent = endpoint.value.trim() || "-"; sumId.textContent = id.value.trim(); };
|
||||||
endpoint.addEventListener("input", () => { updateSecurityBadge(row); syncSummary(); }); fingerprint.addEventListener("input", () => updateSecurityBadge(row)); id.addEventListener("input", syncSummary); updateSecurityBadge(row);
|
endpoint.addEventListener("input", () => { updateSecurityBadge(row); syncSummary(); }); fingerprint.addEventListener("input", () => updateSecurityBadge(row)); id.addEventListener("input", syncSummary); updateSecurityBadge(row);
|
||||||
window.rustProxyAutoId.attach(id, { elements: [name], taken: () => [...(cfg().agents || []).map(item => item.id), ...[...document.querySelectorAll("#docker-agent-settings-list .docker-agent-id")].filter(node => node !== id).map(node => node.value.trim())].filter(Boolean) });
|
window.rustProxyAutoId.attach(id, { elements: [name], taken: () => [...(cfg().agents || []).map(item => item.id), ...[...document.querySelectorAll("#docker-agent-settings-list .docker-agent-id")].filter(node => node !== id).map(node => node.value.trim())].filter(Boolean).filter(value => !agent?.id || value !== agent.id), original: agent?.id || null, inUse: () => [], renameKey: "idRenameHelpDockerAgent" });
|
||||||
return row;
|
return row;
|
||||||
}
|
}
|
||||||
function renderSettings() {
|
function renderSettings() {
|
||||||
|
|||||||
@@ -340,7 +340,8 @@ main {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding: 7px 10px;
|
padding: 7px 10px;
|
||||||
border: 1px solid #e0e5ea;
|
border: 1px solid #e0e5ea;
|
||||||
line-height: 1.5
|
line-height: 1.5;
|
||||||
|
overflow-wrap: break-word
|
||||||
}
|
}
|
||||||
|
|
||||||
.reader-table th {
|
.reader-table th {
|
||||||
|
|||||||
@@ -75,8 +75,8 @@
|
|||||||
function load(item = defaults()) {
|
function load(item = defaults()) {
|
||||||
editing = item.id || null; revision = envelope?.revision ?? null; dirty = false;
|
editing = item.id || null; revision = envelope?.revision ?? null; dirty = false;
|
||||||
$("notfound-editing").textContent = editing || t("notfoundNewLabel");
|
$("notfound-editing").textContent = editing || t("notfoundNewLabel");
|
||||||
$("notfound-id").value = item.id || ""; $("notfound-id").disabled = Boolean(editing); $("notfound-name").value = item.name || "";
|
$("notfound-id").value = item.id || ""; $("notfound-id").disabled = false; $("notfound-name").value = item.name || "";
|
||||||
window.rustProxyAutoId.attach($("notfound-id"), { elements: [$("notfound-name")], taken: () => (envelope?.config.not_found_hosts || []).map(value => value.id) });
|
window.rustProxyAutoId.attach($("notfound-id"), { elements: [$("notfound-name")], taken: () => (envelope?.config.not_found_hosts || []).map(value => value.id).filter(value => value !== editing), original: editing, inUse: () => [], renameKey: "idRenameHelpNotFound" });
|
||||||
$("notfound-enabled").checked = item.enabled !== false; syncEnabledControl(); $("notfound-http2").checked = item.http2_enabled !== false; $("notfound-http3").checked = item.http3_enabled !== false;
|
$("notfound-enabled").checked = item.enabled !== false; syncEnabledControl(); $("notfound-http2").checked = item.http2_enabled !== false; $("notfound-http3").checked = item.http3_enabled !== false;
|
||||||
const hostHolder = $("notfound-hosts-editor"); hostHolder.replaceChildren(); readHosts = window.rustProxyIntegrations.hostnames(hostHolder, item.frontend?.hosts || [], { labelKey: "notfoundHosts", helpKey: "vhHostsHelp", requiredKey: "notfoundHostsRequired", onChange: () => { changed(); notFoundAutoCertificate?.refresh(); syncSummary(); } });
|
const hostHolder = $("notfound-hosts-editor"); hostHolder.replaceChildren(); readHosts = window.rustProxyIntegrations.hostnames(hostHolder, item.frontend?.hosts || [], { labelKey: "notfoundHosts", helpKey: "vhHostsHelp", requiredKey: "notfoundHostsRequired", onChange: () => { changed(); notFoundAutoCertificate?.refresh(); syncSummary(); } });
|
||||||
listenerChoices(item.frontend?.listener_ids || []); certificateChoices(item.certificate_id);
|
listenerChoices(item.frontend?.listener_ids || []); certificateChoices(item.certificate_id);
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
$("notfound-variant").addEventListener("change", () => chooseKind("cloudflare")); $("notfound-html").addEventListener("input", schedulePreview);
|
$("notfound-variant").addEventListener("change", () => chooseKind("cloudflare")); $("notfound-html").addEventListener("input", schedulePreview);
|
||||||
for (const tab of $("notfound-tabs").querySelectorAll("button[data-tab]")) tab.addEventListener("click", () => activateTab(tab.dataset.tab));
|
for (const tab of $("notfound-tabs").querySelectorAll("button[data-tab]")) tab.addEventListener("click", () => activateTab(tab.dataset.tab));
|
||||||
$("notfound-id").addEventListener("input", syncSummary);
|
$("notfound-id").addEventListener("input", syncSummary);
|
||||||
form.addEventListener("submit", async event => { event.preventDefault(); if (!envelope || busy) return; const invalid = [...form.elements].find(input => input.willValidate && !input.checkValidity()); if (invalid) { invalid.reportValidity(); return; } if (revision !== envelope.revision) { toast(t("stale"), true); return; } try { const item = collect(), next = structuredClone(envelope.config.not_found_hosts || []); if (!editing && next.some(value => value.id === item.id)) throw new Error(t("notfoundDuplicate")); const index = next.findIndex(value => value.id === editing); if (index < 0) next.push(item); else next[index] = item; if (await saveSection("not-found-hosts", next)) { dirty = false; editing = item.id; dialog.close(); render(); } } catch (error) { toast(error.message, true); } });
|
form.addEventListener("submit", async event => { event.preventDefault(); if (!envelope || busy) return; const invalid = [...form.elements].find(input => input.willValidate && !input.checkValidity()); if (invalid) { invalid.reportValidity(); return; } if (revision !== envelope.revision) { toast(t("stale"), true); return; } try { const item = collect(), next = structuredClone(envelope.config.not_found_hosts || []); if (next.some(value => value.id === item.id && value.id !== editing)) throw new Error(t("notfoundDuplicate")); const index = next.findIndex(value => value.id === editing); if (index < 0) next.push(item); else next[index] = item; if (await saveSection("not-found-hosts", next)) { dirty = false; editing = item.id; dialog.close(); render(); } } catch (error) { toast(error.message, true); } });
|
||||||
$("notfound-new").addEventListener("click", () => { window.rustProxyDrafts.prepare(); load(); }); $("notfound-search").addEventListener("input", render); $("notfound-sort")?.addEventListener("change", event => { listPrefs.sort = event.target.value; void saveListPrefs(); render(); }); $("notfound-sort-direction")?.addEventListener("click", () => { listPrefs.descending = !listPrefs.descending; syncSortDirection(); void saveListPrefs(); render(); }); $("notfound-close").addEventListener("click", closeEditor); $("notfound-reset").addEventListener("click", async () => { if (await allowDiscard()) load(editing ? structuredClone((envelope?.config.not_found_hosts || []).find(item => item.id === editing) || defaults()) : defaults()); }); dialog.addEventListener("cancel", event => { event.preventDefault(); closeEditor(); });
|
$("notfound-new").addEventListener("click", () => { window.rustProxyDrafts.prepare(); load(); }); $("notfound-search").addEventListener("input", render); $("notfound-sort")?.addEventListener("change", event => { listPrefs.sort = event.target.value; void saveListPrefs(); render(); }); $("notfound-sort-direction")?.addEventListener("click", () => { listPrefs.descending = !listPrefs.descending; syncSortDirection(); void saveListPrefs(); render(); }); $("notfound-close").addEventListener("click", closeEditor); $("notfound-reset").addEventListener("click", async () => { if (await allowDiscard()) load(editing ? structuredClone((envelope?.config.not_found_hosts || []).find(item => item.id === editing) || defaults()) : defaults()); }); dialog.addEventListener("cancel", event => { event.preventDefault(); closeEditor(); });
|
||||||
window.rustProxyDrafts.register("notfound", { labelKey: "notfound", isOpen: () => dialog.open, isDirty: () => dirty, suspend: suspendDraft, restore: restoreDraft, close: () => { dirty = false; if (dialog.open) dialog.close(); } });
|
window.rustProxyDrafts.register("notfound", { labelKey: "notfound", isOpen: () => dialog.open, isDirty: () => dirty, suspend: suspendDraft, restore: restoreDraft, close: () => { dirty = false; if (dialog.open) dialog.close(); } });
|
||||||
window.rustProxyNotFound = { render, edit(id) { const item = (envelope?.config.not_found_hosts || []).find(entry => entry.id === id); if (!item) return false; window.rustProxyDrafts.prepare(); load(structuredClone(item)); return true; }, applyPreferences, reset() { dialog.close(); editing = null; revision = null; dirty = false; listPrefs = { sort: "id", descending: false }; list.replaceChildren(); $("notfound-search").value = ""; if ($("notfound-sort")) $("notfound-sort").value = listPrefs.sort; syncSortDirection(); } };
|
window.rustProxyNotFound = { render, edit(id) { const item = (envelope?.config.not_found_hosts || []).find(entry => entry.id === id); if (!item) return false; window.rustProxyDrafts.prepare(); load(structuredClone(item)); return true; }, applyPreferences, reset() { dialog.close(); editing = null; revision = null; dirty = false; listPrefs = { sort: "id", descending: false }; list.replaceChildren(); $("notfound-search").value = ""; if ($("notfound-sort")) $("notfound-sort").value = listPrefs.sort; syncSortDirection(); } };
|
||||||
|
|||||||
@@ -1098,8 +1098,15 @@
|
|||||||
<div class="card-heading">
|
<div class="card-heading">
|
||||||
<div><span class="small-label" data-i18n="aclProfilesReusable">REUSABLE POLICY</span>
|
<div><span class="small-label" data-i18n="aclProfilesReusable">REUSABLE POLICY</span>
|
||||||
<h2 data-i18n="aclProfiles">ACL profiles</h2>
|
<h2 data-i18n="aclProfiles">ACL profiles</h2>
|
||||||
</div><button class="outline" data-i18n="aclProfileNew" id="acl-profile-new"
|
</div>
|
||||||
type="button">New profile</button>
|
<div class="vhost-list-tools">
|
||||||
|
<label class="sr-only" data-i18n="aclProfileSearch" for="acl-profile-search">Search
|
||||||
|
ACL profiles</label>
|
||||||
|
<input autocomplete="off" data-i18n-aria="aclProfileSearch"
|
||||||
|
data-i18n-placeholder="aclProfileSearchPlaceholder" id="acl-profile-search"
|
||||||
|
type="search" /><button class="outline" data-i18n="aclProfileNew"
|
||||||
|
id="acl-profile-new" type="button">New profile</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="entity-list" id="acl-profile-list"></div>
|
<div class="entity-list" id="acl-profile-list"></div>
|
||||||
<details id="acl-dns-status" class="acl-profile-attached">
|
<details id="acl-dns-status" class="acl-profile-attached">
|
||||||
@@ -1111,115 +1118,6 @@
|
|||||||
<div id="acl-dns-status-list" class="entity-list" aria-live="polite"></div>
|
<div id="acl-dns-status-list" class="entity-list" aria-live="polite"></div>
|
||||||
</details>
|
</details>
|
||||||
</article>
|
</article>
|
||||||
<form class="card edit-form" id="acl-profile-form">
|
|
||||||
<div class="card-heading">
|
|
||||||
<div><span class="small-label" id="acl-profile-editing"></span>
|
|
||||||
<h2 data-i18n="aclProfileEditor">Profile configuration</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="field-grid">
|
|
||||||
<label><span data-i18n="aclProfileName">Display name</span><input id="acl-profile-name"
|
|
||||||
maxlength="96" required /></label>
|
|
||||||
<label class="auto-id-field"><span data-i18n="aclProfileId">Profile ID</span><input
|
|
||||||
id="acl-profile-id" maxlength="64" pattern="[A-Za-z0-9_\-]{1,64}"
|
|
||||||
required /></label>
|
|
||||||
</div>
|
|
||||||
<section class="acl-policy-builder" aria-labelledby="acl-policy-mode-label">
|
|
||||||
<div class="acl-policy-step-head">
|
|
||||||
<div><span class="acl-policy-step">1</span>
|
|
||||||
<div><strong id="acl-policy-mode-label" data-i18n="aclProfilePolicyMode">Choose
|
|
||||||
the base policy</strong>
|
|
||||||
<p class="fine" data-i18n="aclProfilePolicyModeHelp">Start with a simple
|
|
||||||
allow-list or block-list. Use custom mode only when you need mixed
|
|
||||||
allow and deny rules.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="acl-policy-modes" id="acl-profile-mode-options">
|
|
||||||
<label class="acl-policy-mode-card"><input checked name="acl-profile-mode"
|
|
||||||
type="radio" value="allow_exceptions" /><span><b
|
|
||||||
data-i18n="aclProfileModeAllowExceptions">Block by default</b><small
|
|
||||||
data-i18n="aclProfileModeAllowExceptionsHelp">Allow selected countries
|
|
||||||
OR selected IP/CIDR ranges.</small></span></label>
|
|
||||||
<label class="acl-policy-mode-card"><input name="acl-profile-mode" type="radio"
|
|
||||||
value="block_exceptions" /><span><b
|
|
||||||
data-i18n="aclProfileModeBlockExceptions">Allow by default</b><small
|
|
||||||
data-i18n="aclProfileModeBlockExceptionsHelp">Block selected countries
|
|
||||||
OR selected IP/CIDR ranges.</small></span></label>
|
|
||||||
<label class="acl-policy-mode-card acl-policy-mode-custom"><input
|
|
||||||
name="acl-profile-mode" type="radio" value="custom" /><span><b
|
|
||||||
data-i18n="aclProfileModeCustom">Custom</b><small
|
|
||||||
data-i18n="aclProfileModeCustomHelp">Control default, country mode and
|
|
||||||
every IP action manually.</small></span></label>
|
|
||||||
</div>
|
|
||||||
<div class="acl-policy-custom-controls" id="acl-profile-custom-controls" hidden>
|
|
||||||
<label><span data-i18n="aclDefault">Default action</span><select
|
|
||||||
id="acl-profile-default">
|
|
||||||
<option data-i18n="deny" value="deny">Deny</option>
|
|
||||||
<option data-i18n="allow" value="allow">Allow</option>
|
|
||||||
</select></label>
|
|
||||||
<label><span data-i18n="vhCountryMode">Country access</span><select
|
|
||||||
id="acl-profile-country-mode">
|
|
||||||
<option data-i18n="vhOff" value="off">Off</option>
|
|
||||||
<option data-i18n="vhCountryBlock" value="block">Block listed countries
|
|
||||||
</option>
|
|
||||||
<option data-i18n="vhCountryAllow" value="allow">Allow only listed countries
|
|
||||||
</option>
|
|
||||||
</select></label>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<section class="acl-policy-builder">
|
|
||||||
<div class="acl-policy-step-head">
|
|
||||||
<div><span class="acl-policy-step">2</span>
|
|
||||||
<div><strong data-i18n="aclProfileCountryExceptions">Country exceptions</strong>
|
|
||||||
<p class="fine" id="acl-profile-country-help"></p>
|
|
||||||
</div>
|
|
||||||
</div><label class="acl-policy-switch"><input class="switch"
|
|
||||||
id="acl-profile-country-enabled" type="checkbox" /><span
|
|
||||||
data-i18n="aclProfileUseCountries">Use
|
|
||||||
countries</span></label>
|
|
||||||
</div>
|
|
||||||
<label class="acl-policy-country-list" id="acl-profile-country-field"><span
|
|
||||||
id="acl-profile-country-label"
|
|
||||||
data-i18n="vhCountryList">Countries</span><textarea id="acl-profile-countries"
|
|
||||||
rows="4" maxlength="1024" spellcheck="false"
|
|
||||||
placeholder="CN PL"></textarea></label>
|
|
||||||
</section>
|
|
||||||
<section class="acl-policy-builder">
|
|
||||||
<div class="acl-policy-step-head">
|
|
||||||
<div><span class="acl-policy-step">3</span>
|
|
||||||
<div><strong data-i18n="aclProfileIpExceptions">IP / CIDR exceptions</strong>
|
|
||||||
<p class="fine" id="acl-profile-ip-help"></p>
|
|
||||||
</div>
|
|
||||||
</div><button class="quiet" data-i18n="aclProfileAddIpException"
|
|
||||||
id="acl-profile-rule-add" type="button">Add
|
|
||||||
IP exception</button>
|
|
||||||
</div>
|
|
||||||
<div class="acl-profile-rule-rows" id="acl-profile-rule-rows"></div>
|
|
||||||
<details class="acl-profile-bulk" id="acl-profile-bulk">
|
|
||||||
<summary data-i18n="aclProfileBulkRules">Paste / import rules</summary>
|
|
||||||
<label><span data-i18n="aclProfileRules">IP rules — one “allow|deny CIDR” per
|
|
||||||
line</span><textarea id="acl-profile-rules" rows="6" spellcheck="false"
|
|
||||||
placeholder="allow 10.0.0.0/8 allow 203.0.113.5/32"></textarea></label>
|
|
||||||
<p class="fine" data-i18n="aclProfileBulkHelp">Whitespace and invisible Unicode
|
|
||||||
separators are normalized during import.</p>
|
|
||||||
<button class="quiet" data-i18n="aclProfileImportRules"
|
|
||||||
id="acl-profile-import-rules" type="button">Import rules</button>
|
|
||||||
</details>
|
|
||||||
</section>
|
|
||||||
<section class="acl-policy-preview" aria-live="polite">
|
|
||||||
<div class="acl-policy-preview-head"><span data-i18n="aclProfilePreview">Effective
|
|
||||||
policy</span><b id="acl-profile-preview-default"></b></div>
|
|
||||||
<div class="acl-policy-preview-flow" id="acl-profile-preview-flow"></div>
|
|
||||||
<p class="fine" id="acl-profile-preview-note"></p>
|
|
||||||
</section>
|
|
||||||
<p class="fine" data-i18n="aclProfileCombineHelp">Country and IP exceptions use OR inside
|
|
||||||
this profile. Explicit deny rules and blocked countries win; attached profile, vhost and
|
|
||||||
location policies must still all pass.</p>
|
|
||||||
<div class="form-actions"><button class="primary" data-i18n="apply" type="submit">Validate,
|
|
||||||
save and apply</button><button class="quiet" data-i18n="clear"
|
|
||||||
id="acl-profile-reset" type="button">Clear</button></div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -1279,6 +1177,8 @@
|
|||||||
data-i18n="certificateFilterAll" type="button">All</button>
|
data-i18n="certificateFilterAll" type="button">All</button>
|
||||||
<button aria-pressed="false" data-certificate-filter="expiring"
|
<button aria-pressed="false" data-certificate-filter="expiring"
|
||||||
data-i18n="certificateFilterExpiring" type="button">Expiring</button>
|
data-i18n="certificateFilterExpiring" type="button">Expiring</button>
|
||||||
|
<button aria-pressed="false" data-certificate-filter="assigned"
|
||||||
|
data-i18n="certificateFilterAssigned" type="button">Assigned</button>
|
||||||
<button aria-pressed="false" data-certificate-filter="unassigned"
|
<button aria-pressed="false" data-certificate-filter="unassigned"
|
||||||
data-i18n="certificateFilterUnassigned" type="button">Unassigned</button>
|
data-i18n="certificateFilterUnassigned" type="button">Unassigned</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -1451,9 +1351,10 @@
|
|||||||
<summary data-i18n="certAdvanced"></summary>
|
<summary data-i18n="certAdvanced"></summary>
|
||||||
<form class="edit-form" id="certificate-form">
|
<form class="edit-form" id="certificate-form">
|
||||||
<h3 data-i18n="addCertificate"></h3>
|
<h3 data-i18n="addCertificate"></h3>
|
||||||
<label data-i18n="certificateId" for="certificate-id"></label><input
|
<label class="certificate-id-field" for="certificate-id"><span
|
||||||
id="certificate-id" maxlength="64" pattern="[A-Za-z0-9_.\-]+"
|
data-i18n="certificateId"></span><input id="certificate-id"
|
||||||
placeholder="app" required="" />
|
maxlength="64" pattern="[A-Za-z0-9_.\-]+" placeholder="app"
|
||||||
|
required="" /></label>
|
||||||
<label data-i18n="certLegacyNames" for="certificate-hosts"></label><input
|
<label data-i18n="certLegacyNames" for="certificate-hosts"></label><input
|
||||||
id="certificate-hosts" placeholder="app.localhost" />
|
id="certificate-hosts" placeholder="app.localhost" />
|
||||||
<label data-i18n="certificateFileSource"
|
<label data-i18n="certificateFileSource"
|
||||||
@@ -5516,6 +5417,117 @@ log_errors = On</code></pre>
|
|||||||
<article class="card location-help-content" id="location-help-body"></article>
|
<article class="card location-help-content" id="location-help-body"></article>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
|
||||||
|
<dialog aria-labelledby="acl-profile-editor-title" class="vhost-dialog acl-profile-dialog" id="acl-profile-dialog">
|
||||||
|
<form class="card edit-form vh-form" id="acl-profile-form">
|
||||||
|
<div class="card-heading">
|
||||||
|
<h2 data-i18n="aclProfileEditor" id="acl-profile-editor-title">Profile configuration</h2><span
|
||||||
|
class="pill" id="acl-profile-editing"></span><button class="quiet" data-i18n="close"
|
||||||
|
id="acl-profile-close" type="button">Close</button>
|
||||||
|
</div>
|
||||||
|
<div class="field-grid">
|
||||||
|
<label><span data-i18n="aclProfileName">Display name</span><input id="acl-profile-name"
|
||||||
|
maxlength="96" required /></label>
|
||||||
|
<label class="auto-id-field"><span data-i18n="aclProfileId">Profile ID</span><input
|
||||||
|
id="acl-profile-id" maxlength="64" pattern="[A-Za-z0-9_\-]{1,64}"
|
||||||
|
required /></label>
|
||||||
|
</div>
|
||||||
|
<section class="acl-policy-builder" aria-labelledby="acl-policy-mode-label">
|
||||||
|
<div class="acl-policy-step-head">
|
||||||
|
<div><span class="acl-policy-step">1</span>
|
||||||
|
<div><strong id="acl-policy-mode-label" data-i18n="aclProfilePolicyMode">Choose
|
||||||
|
the base policy</strong>
|
||||||
|
<p class="fine" data-i18n="aclProfilePolicyModeHelp">Start with a simple
|
||||||
|
allow-list or block-list. Use custom mode only when you need mixed
|
||||||
|
allow and deny rules.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="acl-policy-modes" id="acl-profile-mode-options">
|
||||||
|
<label class="acl-policy-mode-card"><input checked name="acl-profile-mode"
|
||||||
|
type="radio" value="allow_exceptions" /><span><b
|
||||||
|
data-i18n="aclProfileModeAllowExceptions">Block by default</b><small
|
||||||
|
data-i18n="aclProfileModeAllowExceptionsHelp">Allow selected countries
|
||||||
|
OR selected IP/CIDR ranges.</small></span></label>
|
||||||
|
<label class="acl-policy-mode-card"><input name="acl-profile-mode" type="radio"
|
||||||
|
value="block_exceptions" /><span><b
|
||||||
|
data-i18n="aclProfileModeBlockExceptions">Allow by default</b><small
|
||||||
|
data-i18n="aclProfileModeBlockExceptionsHelp">Block selected countries
|
||||||
|
OR selected IP/CIDR ranges.</small></span></label>
|
||||||
|
<label class="acl-policy-mode-card acl-policy-mode-custom"><input
|
||||||
|
name="acl-profile-mode" type="radio" value="custom" /><span><b
|
||||||
|
data-i18n="aclProfileModeCustom">Custom</b><small
|
||||||
|
data-i18n="aclProfileModeCustomHelp">Control default, country mode and
|
||||||
|
every IP action manually.</small></span></label>
|
||||||
|
</div>
|
||||||
|
<div class="acl-policy-custom-controls" id="acl-profile-custom-controls" hidden>
|
||||||
|
<label><span data-i18n="aclDefault">Default action</span><select
|
||||||
|
id="acl-profile-default">
|
||||||
|
<option data-i18n="deny" value="deny">Deny</option>
|
||||||
|
<option data-i18n="allow" value="allow">Allow</option>
|
||||||
|
</select></label>
|
||||||
|
<label><span data-i18n="vhCountryMode">Country access</span><select
|
||||||
|
id="acl-profile-country-mode">
|
||||||
|
<option data-i18n="vhOff" value="off">Off</option>
|
||||||
|
<option data-i18n="vhCountryBlock" value="block">Block listed countries
|
||||||
|
</option>
|
||||||
|
<option data-i18n="vhCountryAllow" value="allow">Allow only listed countries
|
||||||
|
</option>
|
||||||
|
</select></label>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="acl-policy-builder">
|
||||||
|
<div class="acl-policy-step-head">
|
||||||
|
<div><span class="acl-policy-step">2</span>
|
||||||
|
<div><strong data-i18n="aclProfileCountryExceptions">Country exceptions</strong>
|
||||||
|
<p class="fine" id="acl-profile-country-help"></p>
|
||||||
|
</div>
|
||||||
|
</div><label class="acl-policy-switch"><input class="switch"
|
||||||
|
id="acl-profile-country-enabled" type="checkbox" /><span
|
||||||
|
data-i18n="aclProfileUseCountries">Use
|
||||||
|
countries</span></label>
|
||||||
|
</div>
|
||||||
|
<label class="acl-policy-country-list" id="acl-profile-country-field"><span
|
||||||
|
id="acl-profile-country-label"
|
||||||
|
data-i18n="vhCountryList">Countries</span><textarea id="acl-profile-countries"
|
||||||
|
rows="4" maxlength="1024" spellcheck="false"
|
||||||
|
placeholder="CN PL"></textarea></label>
|
||||||
|
</section>
|
||||||
|
<section class="acl-policy-builder">
|
||||||
|
<div class="acl-policy-step-head">
|
||||||
|
<div><span class="acl-policy-step">3</span>
|
||||||
|
<div><strong data-i18n="aclProfileIpExceptions">IP / CIDR exceptions</strong>
|
||||||
|
<p class="fine" id="acl-profile-ip-help"></p>
|
||||||
|
</div>
|
||||||
|
</div><button class="quiet" data-i18n="aclProfileAddIpException"
|
||||||
|
id="acl-profile-rule-add" type="button">Add
|
||||||
|
IP exception</button>
|
||||||
|
</div>
|
||||||
|
<div class="acl-profile-rule-rows" id="acl-profile-rule-rows"></div>
|
||||||
|
<details class="acl-profile-bulk" id="acl-profile-bulk">
|
||||||
|
<summary data-i18n="aclProfileBulkRules">Paste / import rules</summary>
|
||||||
|
<label><span data-i18n="aclProfileRules">IP rules — one “allow|deny CIDR” per
|
||||||
|
line</span><textarea id="acl-profile-rules" rows="6" spellcheck="false"
|
||||||
|
placeholder="allow 10.0.0.0/8 allow 203.0.113.5/32"></textarea></label>
|
||||||
|
<p class="fine" data-i18n="aclProfileBulkHelp">Whitespace and invisible Unicode
|
||||||
|
separators are normalized during import.</p>
|
||||||
|
<button class="quiet" data-i18n="aclProfileImportRules"
|
||||||
|
id="acl-profile-import-rules" type="button">Import rules</button>
|
||||||
|
</details>
|
||||||
|
</section>
|
||||||
|
<section class="acl-policy-preview" aria-live="polite">
|
||||||
|
<div class="acl-policy-preview-head"><span data-i18n="aclProfilePreview">Effective
|
||||||
|
policy</span><b id="acl-profile-preview-default"></b></div>
|
||||||
|
<div class="acl-policy-preview-flow" id="acl-profile-preview-flow"></div>
|
||||||
|
<p class="fine" id="acl-profile-preview-note"></p>
|
||||||
|
</section>
|
||||||
|
<p class="fine" data-i18n="aclProfileCombineHelp">Country and IP exceptions use OR inside
|
||||||
|
this profile. Explicit deny rules and blocked countries win; attached profile, vhost and
|
||||||
|
location policies must still all pass.</p>
|
||||||
|
<div class="form-actions"><button class="primary" data-i18n="apply" type="submit">Validate,
|
||||||
|
save and apply</button><button class="quiet" data-i18n="vhCancel"
|
||||||
|
id="acl-profile-reset" type="button">Cancel</button></div>
|
||||||
|
</form>
|
||||||
|
</dialog>
|
||||||
<dialog aria-labelledby="redirect-editor-title" class="vhost-dialog" id="redirect-dialog">
|
<dialog aria-labelledby="redirect-editor-title" class="vhost-dialog" id="redirect-dialog">
|
||||||
<form class="card vh-form" id="redirect-form" novalidate="">
|
<form class="card vh-form" id="redirect-form" novalidate="">
|
||||||
<div class="card-heading">
|
<div class="card-heading">
|
||||||
|
|||||||
@@ -132,6 +132,7 @@
|
|||||||
const grid = el("div", undefined, "vh-grid"); body.append(grid); const b = item.binding || {};
|
const grid = el("div", undefined, "vh-grid"); body.append(grid); const b = item.binding || {};
|
||||||
const id = field(grid, "listener-id", "listenerId", item.id, "text", { required: true, maxLength: 64, pattern: "[A-Za-z0-9_\\-]{1,64}" });
|
const id = field(grid, "listener-id", "listenerId", item.id, "text", { required: true, maxLength: 64, pattern: "[A-Za-z0-9_\\-]{1,64}" });
|
||||||
const name = field(grid, "listener-name", "listenerName", item.name, "text", { maxLength: 96 });
|
const name = field(grid, "listener-name", "listenerName", item.name, "text", { maxLength: 96 });
|
||||||
|
window.rustProxyAutoId.attach(id, { elements: [name], taken: () => [...$("named-listener-rows").querySelectorAll('input[name="listener-id"]')].filter(node => node !== id).map(node => node.value.trim()).filter(Boolean), original: fresh ? null : item.id, inUse: value => configReferences(value, ["listener_ids"]), renameKey: "idRenameHelpListener" });
|
||||||
const scope = field(grid, "listener-scope", "listenerScope", item.scope || "internal", "select", { values: [["internal", "listenerInternal"], ["public", "listenerPublic"]] });
|
const scope = field(grid, "listener-scope", "listenerScope", item.scope || "internal", "select", { values: [["internal", "listenerInternal"], ["public", "listenerPublic"]] });
|
||||||
const currentAddresses = [b.address, ...(item.additional_addresses || [])].filter(Boolean);
|
const currentAddresses = [b.address, ...(item.additional_addresses || [])].filter(Boolean);
|
||||||
const startupAddress = b.tls ? latestStatus?.listeners?.locked_https : latestStatus?.listeners?.locked_http;
|
const startupAddress = b.tls ? latestStatus?.listeners?.locked_https : latestStatus?.listeners?.locked_http;
|
||||||
|
|||||||
@@ -573,12 +573,12 @@
|
|||||||
rules.placeholder = custom ? "allow 10.0.0.0/8\ndeny 10.21.0.0/16" : "10.0.0.0/8\n203.0.113.5";
|
rules.placeholder = custom ? "allow 10.0.0.0/8\ndeny 10.21.0.0/16" : "10.0.0.0/8\n203.0.113.5";
|
||||||
syncRuleRows(convertRules); renderPreview();
|
syncRuleRows(convertRules); renderPreview();
|
||||||
}
|
}
|
||||||
function attachAclProfileId() { window.rustProxyAutoId.attach($("acl-profile-id"), { elements: [$("acl-profile-name")], taken: () => (envelope?.config.acl_profiles || []).map(value => value.id) }); }
|
function attachAclProfileId() { window.rustProxyAutoId.attach($("acl-profile-id"), { elements: [$("acl-profile-name")], taken: () => (envelope?.config.acl_profiles || []).map(value => value.id).filter(value => value !== editing), original: editing, inUse: id => configReferences(id, ["acl_profile_id", "acl_profile_ids"]), renameKey: "idRenameHelpAclProfile" }); }
|
||||||
function clear() {
|
function clear() {
|
||||||
editing = null; dirty = false; form.reset(); setMode("allow_exceptions"); aclDefault.value = "deny"; countryMode.value = "off"; countryEnabled.checked = false; countriesInput.value = ""; $("acl-profile-id").readOnly = false; attachAclProfileId(); $("acl-profile-editing").textContent = t("aclProfileNew"); renderRuleRows([]); rules.value = ""; syncPolicy();
|
editing = null; dirty = false; form.reset(); setMode("allow_exceptions"); aclDefault.value = "deny"; countryMode.value = "off"; countryEnabled.checked = false; countriesInput.value = ""; $("acl-profile-id").readOnly = false; attachAclProfileId(); $("acl-profile-editing").textContent = t("aclProfileNew"); renderRuleRows([]); rules.value = ""; syncPolicy();
|
||||||
}
|
}
|
||||||
function edit(profile) {
|
function edit(profile) {
|
||||||
editing = profile.id; dirty = false; $("acl-profile-id").value = profile.id; $("acl-profile-id").readOnly = true; $("acl-profile-name").value = profile.name || profile.id; attachAclProfileId();
|
editing = profile.id; dirty = false; $("acl-profile-id").value = profile.id; $("acl-profile-id").readOnly = false; $("acl-profile-name").value = profile.name || profile.id; attachAclProfileId();
|
||||||
const cMode = profile.country_access?.mode || "off"; aclDefault.value = profile.acl?.default || (cMode === "allow" ? "deny" : "allow"); countryMode.value = cMode;
|
const cMode = profile.country_access?.mode || "off"; aclDefault.value = profile.acl?.default || (cMode === "allow" ? "deny" : "allow"); countryMode.value = cMode;
|
||||||
countryEnabled.checked = cMode !== "off"; countriesInput.value = (profile.country_access?.countries || []).join("\n");
|
countryEnabled.checked = cMode !== "off"; countriesInput.value = (profile.country_access?.countries || []).join("\n");
|
||||||
setMode(inferMode(profile)); renderRuleRows(profile.acl?.rules || []); $("acl-profile-editing").textContent = t("aclProfileEdit"); dirty = false; syncPolicy();
|
setMode(inferMode(profile)); renderRuleRows(profile.acl?.rules || []); $("acl-profile-editing").textContent = t("aclProfileEdit"); dirty = false; syncPolicy();
|
||||||
@@ -587,16 +587,6 @@
|
|||||||
edit(profile); editing = null; $("acl-profile-id").readOnly = false; $("acl-profile-id").value = ""; $("acl-profile-name").value = ""; attachAclProfileId();
|
edit(profile); editing = null; $("acl-profile-id").readOnly = false; $("acl-profile-id").value = ""; $("acl-profile-name").value = ""; attachAclProfileId();
|
||||||
$("acl-profile-editing").textContent = t("aclProfileNew"); dirty = true; $("acl-profile-name").focus();
|
$("acl-profile-editing").textContent = t("aclProfileNew"); dirty = true; $("acl-profile-name").focus();
|
||||||
}
|
}
|
||||||
function friendlySummary(profile) {
|
|
||||||
const mode = inferMode(profile), countries = profile.country_access?.countries || [], rulesList = profile.acl?.rules || [];
|
|
||||||
if (mode === "allow_exceptions" || mode === "block_exceptions") {
|
|
||||||
const allowMode = mode === "allow_exceptions", parts = [];
|
|
||||||
if (countries.length && profile.country_access?.mode !== "off") parts.push(`${t(allowMode ? "aclProfileCountriesShortAllow" : "aclProfileCountriesShortBlock")}: ${countries.join(", ")}`);
|
|
||||||
if (rulesList.length) parts.push(`${t(allowMode ? "aclProfileIpsShortAllow" : "aclProfileIpsShortBlock")}: ${rulesList.map(rule => rule.network).join(", ")}`);
|
|
||||||
return [`${t(allowMode ? "aclProfileModeAllowExceptions" : "aclProfileModeBlockExceptions")}`, parts.join(" · ") || t("aclProfilePreviewNoExceptions")];
|
|
||||||
}
|
|
||||||
return [`${t("aclProfileModeCustom")}: ${t("aclDefault")} ${t(profile.acl?.default || "allow")}`, `${rulesList.length} ${t("aclProfileIpRulesShort")} · ${t("vhCountryMode")}: ${t(profile.country_access?.mode === "block" ? "vhCountryBlock" : profile.country_access?.mode === "allow" ? "vhCountryAllow" : "vhOff")}`];
|
|
||||||
}
|
|
||||||
function refreshTranslations() {
|
function refreshTranslations() {
|
||||||
$("acl-profile-editing").textContent = t(editing ? "aclProfileEdit" : "aclProfileNew");
|
$("acl-profile-editing").textContent = t(editing ? "aclProfileEdit" : "aclProfileNew");
|
||||||
for (const row of ruleRows.children) {
|
for (const row of ruleRows.children) {
|
||||||
@@ -617,28 +607,32 @@
|
|||||||
function render() {
|
function render() {
|
||||||
if (!envelope) return;
|
if (!envelope) return;
|
||||||
const profiles = envelope.config.acl_profiles || [], list = $("acl-profile-list");
|
const profiles = envelope.config.acl_profiles || [], list = $("acl-profile-list");
|
||||||
const cards = profiles.map(profile => {
|
const query = ($("acl-profile-search")?.value || "").trim().toLowerCase();
|
||||||
const box = el("div", undefined, "entity acl-profile-card");
|
const usersOf = profile => window.rustProxyConfigReferences(profile.id, ["acl_profile_id", "acl_profile_ids"]);
|
||||||
const top = el("div", undefined, "entity-top"); top.append(el("span", profile.name || profile.id, "entity-title"), el("small", profile.id)); box.append(top);
|
const shown = profiles.filter(profile => !query || [profile.id, profile.name, ...(profile.acl?.rules || []).map(rule => rule.network), ...(profile.country_access?.countries || []), ...usersOf(profile)].join(" ").toLowerCase().includes(query));
|
||||||
const pieces = friendlySummary(profile);
|
const cards = shown.map(profile => {
|
||||||
const usesProfile = value => value.acl_profile_id === profile.id || (value.acl_profile_ids || []).includes(profile.id);
|
const box = el("article", undefined, "vhost-card acl-profile-card acl-profile-row"); box.dataset.aclProfile = profile.id;
|
||||||
const users = (envelope.config.vhosts || []).filter(usesProfile).map(v => v.id);
|
const mode = inferMode(profile), users = usersOf(profile), rulesList = profile.acl?.rules || [], countries = profile.country_access?.countries || [];
|
||||||
for (const agent of envelope.config.docker_agents?.agents || []) {
|
const head = el("div", undefined, "vhost-card-head"), identity = el("div", undefined, "vhost-card-identity"), title = el("div", undefined, "vhost-title-line");
|
||||||
if (usesProfile(agent)) users.push(`docker-agent:${agent.id}`);
|
const modePill = el("span", t(mode === "allow_exceptions" ? "aclProfileModeAllowExceptions" : mode === "block_exceptions" ? "aclProfileModeBlockExceptions" : "aclProfileModeCustom"), `pill${profile.acl?.default === "deny" ? " warn" : " live"}`);
|
||||||
for (const assignment of agent.assignments || []) if (usesProfile(assignment)) users.push(`docker:${agent.id}/${assignment.hostname || assignment.service_key}`);
|
title.append(el("strong", profile.name || profile.id, "entity-title"), modePill, el("span", users.length ? `${t("aclProfileAttached")}: ${users.length}` : t("aclProfileNotUsed"), users.length ? "pill live" : "pill"));
|
||||||
}
|
identity.append(title, el("div", profile.id, "vhost-hosts")); head.append(identity);
|
||||||
box.append(el("p", pieces.filter(Boolean).join("\n"), "entity-details"));
|
const actions = el("div", undefined, "entity-actions"); actions.append(action(t("edit"), () => { edit(profile); openEditor(); }), action(t("copyEntry"), () => { copyProfile(profile); openEditor(); }), action(t("remove"), async () => {
|
||||||
if (users.length) {
|
|
||||||
const attached = el("details", undefined, "acl-profile-attached");
|
|
||||||
attached.append(el("summary", `${t("aclProfileAttached")} (${users.length})`), el("p", users.join(", "), "entity-details"));
|
|
||||||
box.append(attached);
|
|
||||||
}
|
|
||||||
const actions = el("div", undefined, "entity-actions"); actions.append(action(t("edit"), () => edit(profile)), action(t("copyEntry"), () => copyProfile(profile)), action(t("remove"), async () => {
|
|
||||||
if (users.length) { toast(`${t("aclProfileInUse")}: ${users.join(", ")}`, true); return; }
|
if (users.length) { toast(`${t("aclProfileInUse")}: ${users.join(", ")}`, true); return; }
|
||||||
if (!(await appConfirm(t("confirmDelete"), { danger: true }))) return; const next = structuredClone(envelope.config); next.acl_profiles = (next.acl_profiles || []).filter(item => item.id !== profile.id); if (await saveSection("acl-profiles", next.acl_profiles || [])) clear();
|
if (!(await appConfirm(t("confirmDelete"), { danger: true }))) return; const next = structuredClone(envelope.config); next.acl_profiles = (next.acl_profiles || []).filter(item => item.id !== profile.id); if (await saveSection("acl-profiles", next.acl_profiles || [])) { if (editing === profile.id && aclDialog?.open) aclDialog.close(); clear(); }
|
||||||
})); box.append(actions); return box;
|
}));
|
||||||
|
head.append(actions); box.append(head);
|
||||||
|
const details = el("div", undefined, "vhost-detail-strip");
|
||||||
|
const countryMode = profile.country_access?.mode || "off";
|
||||||
|
for (const [key, value] of [
|
||||||
|
["aclDefault", t(profile.acl?.default === "deny" ? "deny" : "allow")],
|
||||||
|
["aclProfileIpRulesShort", rulesList.length ? rulesList.map(rule => `${t(rule.action === "deny" ? "aclDeny" : "aclAllow")} ${rule.network}`).join(", ") : "-"],
|
||||||
|
["vhCountryMode", countryMode === "off" || !countries.length ? "-" : `${t(countryMode === "block" ? "vhCountryBlock" : "vhCountryAllow")}: ${countries.join(", ")}`],
|
||||||
|
["aclProfileAttached", users.join(", ") || "-"]
|
||||||
|
]) { const cell = el("div", undefined, "vhost-detail"); const valueNode = el("b", value); valueNode.title = value; cell.append(el("span", t(key), "small-label"), valueNode); details.append(cell); }
|
||||||
|
box.append(details); return box;
|
||||||
});
|
});
|
||||||
list.replaceChildren(...(cards.length ? cards : [el("p", t("aclProfilesEmpty"), "empty")]));
|
list.replaceChildren(...(cards.length ? cards : [el("p", t(query && profiles.length ? "aclProfileSearchEmpty" : "aclProfilesEmpty"), "empty")]));
|
||||||
if (!dirty && editing) { const current = profiles.find(p => p.id === editing); if (current) edit(current); else clear(); }
|
if (!dirty && editing) { const current = profiles.find(p => p.id === editing); if (current) edit(current); else clear(); }
|
||||||
}
|
}
|
||||||
form.addEventListener("input", event => { dirty = true; if (event.target !== rules) { syncRulesText(); syncPolicy(); } });
|
form.addEventListener("input", event => { dirty = true; if (event.target !== rules) { syncRulesText(); syncPolicy(); } });
|
||||||
@@ -676,12 +670,22 @@
|
|||||||
const profile = { id, name, acl: { default: finalDefault, rules: aclRules }, country_access: { mode: finalCountryMode, countries } };
|
const profile = { id, name, acl: { default: finalDefault, rules: aclRules }, country_access: { mode: finalCountryMode, countries } };
|
||||||
const next = structuredClone(envelope.config); next.acl_profiles ||= [];
|
const next = structuredClone(envelope.config); next.acl_profiles ||= [];
|
||||||
const index = next.acl_profiles.findIndex(item => item.id === editing);
|
const index = next.acl_profiles.findIndex(item => item.id === editing);
|
||||||
if (index < 0) { if (next.acl_profiles.some(item => item.id === id)) throw fieldError($("acl-profile-id"), t("aclProfileDuplicate")); next.acl_profiles.push(profile); } else next.acl_profiles[index] = profile;
|
if (next.acl_profiles.some(item => item.id === id && item.id !== editing)) throw fieldError($("acl-profile-id"), t("aclProfileDuplicate")); if (index < 0) next.acl_profiles.push(profile); else next.acl_profiles[index] = profile;
|
||||||
if (await saveSection("acl-profiles", next.acl_profiles || [])) { editing = id; dirty = false; render(); }
|
if (await saveSection("acl-profiles", next.acl_profiles || [])) { dirty = false; editing = null; if (aclDialog?.open) aclDialog.close(); clear(); render(); }
|
||||||
});
|
});
|
||||||
} catch (error) { toast(error.message, true); if (error.fieldTarget?.focus) error.fieldTarget.focus(); }
|
} catch (error) { toast(error.message, true); if (error.fieldTarget?.focus) error.fieldTarget.focus(); }
|
||||||
});
|
});
|
||||||
$("acl-profile-new").addEventListener("click", clear); $("acl-profile-reset").addEventListener("click", clear);
|
const aclDialog = $("acl-profile-dialog");
|
||||||
window.rustProxyAclProfiles = { render, reset: clear, refreshTranslations };
|
function openEditor() { if (aclDialog && !aclDialog.open) aclDialog.showModal(); }
|
||||||
|
async function closeEditor() {
|
||||||
|
if (dirty && !(await appConfirm(t("aclProfileUnsaved"), { danger: true, confirmLabel: t("discardAction") }))) return;
|
||||||
|
dirty = false; if (aclDialog?.open) aclDialog.close(); clear();
|
||||||
|
}
|
||||||
|
$("acl-profile-new").addEventListener("click", () => { clear(); openEditor(); $("acl-profile-name").focus(); });
|
||||||
|
$("acl-profile-search")?.addEventListener("input", () => render());
|
||||||
|
$("acl-profile-reset").addEventListener("click", () => void closeEditor());
|
||||||
|
$("acl-profile-close")?.addEventListener("click", () => void closeEditor());
|
||||||
|
aclDialog?.addEventListener("cancel", event => { event.preventDefault(); void closeEditor(); });
|
||||||
|
window.rustProxyAclProfiles = { render, reset: () => { dirty = false; if (aclDialog?.open) aclDialog.close(); clear(); }, refreshTranslations };
|
||||||
clear(); if (envelope) render();
|
clear(); if (envelope) render();
|
||||||
})();
|
})();
|
||||||
@@ -229,9 +229,9 @@
|
|||||||
function load(item = defaults()) {
|
function load(item = defaults()) {
|
||||||
editing = item.id || null; revision = envelope?.revision ?? null; dirty = false;
|
editing = item.id || null; revision = envelope?.revision ?? null; dirty = false;
|
||||||
$("redirect-editing").textContent = editing ? editing : t("redirectNewLabel");
|
$("redirect-editing").textContent = editing ? editing : t("redirectNewLabel");
|
||||||
$("redirect-id").value = item.id || ""; $("redirect-id").disabled = Boolean(editing);
|
$("redirect-id").value = item.id || ""; $("redirect-id").disabled = false;
|
||||||
$("redirect-name").value = item.name || "";
|
$("redirect-name").value = item.name || "";
|
||||||
window.rustProxyAutoId.attach($("redirect-id"), { elements: [$("redirect-name")], taken: () => (envelope?.config.redirects || []).map(value => value.id) });
|
window.rustProxyAutoId.attach($("redirect-id"), { elements: [$("redirect-name")], taken: () => (envelope?.config.redirects || []).map(value => value.id).filter(value => value !== editing), original: editing, inUse: () => [], renameKey: "idRenameHelpRedirect" });
|
||||||
const hostHolder = $("redirect-hosts-editor"); hostHolder.replaceChildren(); readRedirectHosts = window.rustProxyIntegrations.hostnames(hostHolder, item.frontend?.hosts || [], { labelKey: "redirectHosts", helpKey: "vhHostsHelp", requiredKey: "redirectHostsRequired", onChange: () => { changed(); redirectAutoCertificate?.refresh(); syncSummary(); ruleBoxes().forEach(syncRule); } });
|
const hostHolder = $("redirect-hosts-editor"); hostHolder.replaceChildren(); readRedirectHosts = window.rustProxyIntegrations.hostnames(hostHolder, item.frontend?.hosts || [], { labelKey: "redirectHosts", helpKey: "vhHostsHelp", requiredKey: "redirectHostsRequired", onChange: () => { changed(); redirectAutoCertificate?.refresh(); syncSummary(); ruleBoxes().forEach(syncRule); } });
|
||||||
$("redirect-enabled").checked = item.enabled !== false; syncEnabledControl(); $("redirect-http2").checked = item.http2_enabled !== false; $("redirect-http3").checked = item.http3_enabled !== false;
|
$("redirect-enabled").checked = item.enabled !== false; syncEnabledControl(); $("redirect-http2").checked = item.http2_enabled !== false; $("redirect-http3").checked = item.http3_enabled !== false;
|
||||||
listenerChoices(item.frontend?.listener_ids || []); certificateChoices(item.certificate_id);
|
listenerChoices(item.frontend?.listener_ids || []); certificateChoices(item.certificate_id);
|
||||||
@@ -326,7 +326,7 @@
|
|||||||
event.preventDefault(); if (!envelope || busy) return; const invalid = [...form.elements].find(input => input.willValidate && !input.checkValidity());
|
event.preventDefault(); if (!envelope || busy) return; const invalid = [...form.elements].find(input => input.willValidate && !input.checkValidity());
|
||||||
if (invalid) { const group = invalid.closest(".vh-group[data-tab]"); if (group) activateTab(group.dataset.tab); const row = invalid.closest("details"); if (row) row.open = true; invalid.reportValidity(); return; }
|
if (invalid) { const group = invalid.closest(".vh-group[data-tab]"); if (group) activateTab(group.dataset.tab); const row = invalid.closest("details"); if (row) row.open = true; invalid.reportValidity(); return; }
|
||||||
if (revision !== envelope.revision) { toast(t("stale"), true); return; }
|
if (revision !== envelope.revision) { toast(t("stale"), true); return; }
|
||||||
try { const item = collect(), next = structuredClone(envelope.config.redirects || []); if (!editing && next.some(value => value.id === item.id)) throw new Error(t("redirectDuplicate")); const index = next.findIndex(value => value.id === editing); if (index < 0) next.push(item); else next[index] = item; if (await saveSection("redirects", next)) { dirty = false; editing = item.id; dialog.close(); render(); } } catch (error) { toast(error.message, true); }
|
try { const item = collect(), next = structuredClone(envelope.config.redirects || []); if (next.some(value => value.id === item.id && value.id !== editing)) throw new Error(t("redirectDuplicate")); const index = next.findIndex(value => value.id === editing); if (index < 0) next.push(item); else next[index] = item; if (await saveSection("redirects", next)) { dirty = false; editing = item.id; dialog.close(); render(); } } catch (error) { toast(error.message, true); }
|
||||||
});
|
});
|
||||||
for (const tab of $("redirect-tabs").querySelectorAll("button[data-tab]")) tab.addEventListener("click", () => activateTab(tab.dataset.tab));
|
for (const tab of $("redirect-tabs").querySelectorAll("button[data-tab]")) tab.addEventListener("click", () => activateTab(tab.dataset.tab));
|
||||||
$("redirect-id").addEventListener("input", syncSummary);
|
$("redirect-id").addEventListener("input", syncSummary);
|
||||||
|
|||||||
@@ -180,9 +180,10 @@
|
|||||||
$("stream-editing").textContent = t(editing ? "streamEditLabel" : "streamNewLabel");
|
$("stream-editing").textContent = t(editing ? "streamEditLabel" : "streamNewLabel");
|
||||||
let g = group("streamEditor", "details");
|
let g = group("streamEditor", "details");
|
||||||
const streamName = field(g, "name", "streamName", value.name, "text", { maxLength: 96 });
|
const streamName = field(g, "name", "streamName", value.name, "text", { maxLength: 96 });
|
||||||
const streamIdInput = field(g, "id", "streamId", value.id, "text", { required: true, maxLength: 64, pattern: "[A-Za-z0-9_\\-]{1,64}", readOnly: Boolean(editing) });
|
const streamIdInput = field(g, "id", "streamId", value.id, "text", { required: true, maxLength: 64, pattern: "[A-Za-z0-9_\\-]{1,64}" });
|
||||||
window.rustProxyAutoId.attach(streamIdInput, { elements: [streamName], taken: () => (envelope?.config.streams || []).map(item => item.id) });
|
window.rustProxyAutoId.attach(streamIdInput, { elements: [streamName], taken: () => (envelope?.config.streams || []).map(item => item.id).filter(id => id !== editing), original: editing, inUse: () => [], renameKey: "idRenameHelpStream" });
|
||||||
const protocol = field(g, "protocol", "streamProtocol", value.protocol || "tcp", "select", { values: [["tcp", "streamTcp"], ["udp", "streamUdp"]] });
|
const protocol = field(g, "protocol", "streamProtocol", value.protocol || "tcp", "select", { values: [["tcp", "streamTcp"], ["udp", "streamUdp"]] });
|
||||||
|
protocol.closest("label")?.setAttribute("data-row-start", "");
|
||||||
const enabledControl = field(g, "enabled", "vhEnabled", value.enabled !== false, "checkbox", { switch: true });
|
const enabledControl = field(g, "enabled", "vhEnabled", value.enabled !== false, "checkbox", { switch: true });
|
||||||
window.rustProxyEnableControl(enabledControl);
|
window.rustProxyEnableControl(enabledControl);
|
||||||
const enabledLabel = enabledControl.closest("label");
|
const enabledLabel = enabledControl.closest("label");
|
||||||
@@ -373,7 +374,7 @@
|
|||||||
if (revision !== envelope.revision) { toast(t("stale"), true); return; }
|
if (revision !== envelope.revision) { toast(t("stale"), true); return; }
|
||||||
try {
|
try {
|
||||||
const value = collect(), next = structuredClone(envelope.config); next.streams ||= [];
|
const value = collect(), next = structuredClone(envelope.config); next.streams ||= [];
|
||||||
if (!editing && next.streams.some(stream => stream.id === value.id)) throw new Error(t("streamDuplicate"));
|
if (next.streams.some(stream => stream.id === value.id && stream.id !== editing)) throw new Error(t("streamDuplicate"));
|
||||||
if (!editing && next.streams.length >= 128) throw new Error(t("streamLimit"));
|
if (!editing && next.streams.length >= 128) throw new Error(t("streamLimit"));
|
||||||
const index = next.streams.findIndex(stream => stream.id === editing); if (index < 0) next.streams.push(value); else next.streams[index] = value;
|
const index = next.streams.findIndex(stream => stream.id === editing); if (index < 0) next.streams.push(value); else next.streams[index] = value;
|
||||||
if (await saveSection("streams", next.streams || [])) { dirty = false; load(value, false); dialog.close(); render(); }
|
if (await saveSection("streams", next.streams || [])) { dirty = false; load(value, false); dialog.close(); render(); }
|
||||||
|
|||||||
@@ -60,10 +60,11 @@ window.rustProxyPhpProfiles = ({ defaults, mapLines, lines, parseFastCgiParams,
|
|||||||
input.required = true; input.readOnly = readonly; wrapper.append(input); editor.append(wrapper); return input;
|
input.required = true; input.readOnly = readonly; wrapper.append(input); editor.append(wrapper); return input;
|
||||||
};
|
};
|
||||||
const nameInput = namedInput("phpProfileName", profile.name);
|
const nameInput = namedInput("phpProfileName", profile.name);
|
||||||
const idInput = namedInput("phpProfileId", profile.id, !creating);
|
const idInput = namedInput("phpProfileId", profile.id);
|
||||||
window.rustProxyAutoId.attach(idInput, {
|
window.rustProxyAutoId.attach(idInput, {
|
||||||
elements: [nameInput],
|
elements: [nameInput],
|
||||||
taken: () => (envelope?.config.php_fpm_profiles || []).map(item => item.id)
|
taken: () => (envelope?.config.php_fpm_profiles || []).map(item => item.id).filter(id => creating || id !== profile.id),
|
||||||
|
original: creating ? null : profile.id, inUse: id => configReferences(id, ["php_profile_id"]), renameKey: "idRenameHelpProfile"
|
||||||
});
|
});
|
||||||
if (creating && nameInput.value) nameInput.dispatchEvent(new Event("input"));
|
if (creating && nameInput.value) nameInput.dispatchEvent(new Event("input"));
|
||||||
idInput.closest("label").append(el("small", t("phpProfileIdHelp"), "fine fastcgi-profile-identity-help"));
|
idInput.closest("label").append(el("small", t("phpProfileIdHelp"), "fine fastcgi-profile-identity-help"));
|
||||||
|
|||||||
@@ -407,9 +407,9 @@
|
|||||||
item.hardening = Object.assign(defaults().hardening, item.hardening || {});
|
item.hardening = Object.assign(defaults().hardening, item.hardening || {});
|
||||||
editing = value?.id || null;
|
editing = value?.id || null;
|
||||||
$("web-service-id").value = item.id || "";
|
$("web-service-id").value = item.id || "";
|
||||||
$("web-service-id").readOnly = !!editing;
|
$("web-service-id").readOnly = false;
|
||||||
$("web-service-name").value = item.name || "";
|
$("web-service-name").value = item.name || "";
|
||||||
window.rustProxyAutoId.attach($("web-service-id"), { elements: [$("web-service-name")], taken: () => (envelope?.config.web_services || []).map(value => value.id) });
|
window.rustProxyAutoId.attach($("web-service-id"), { elements: [$("web-service-name")], taken: () => (envelope?.config.web_services || []).map(value => value.id).filter(value => value !== editing), original: editing || null, inUse: id => configReferences(id, ["web_service_id"]), renameKey: "idRenameHelpWebService" });
|
||||||
$("web-service-root").value = item.document_root || "";
|
$("web-service-root").value = item.document_root || "";
|
||||||
populateSettings(item);
|
populateSettings(item);
|
||||||
$("web-service-preset").value = "custom";
|
$("web-service-preset").value = "custom";
|
||||||
|
|||||||
@@ -308,23 +308,33 @@ pub fn label_publications(
|
|||||||
(publications, issues)
|
(publications, issues)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn assignment_certificate(
|
||||||
|
agent: &Agent,
|
||||||
|
assignment: &Assignment,
|
||||||
|
certificates: &[crate::tls::Certificate],
|
||||||
|
hosts: &[String],
|
||||||
|
) -> (Option<String>, bool) {
|
||||||
|
let certificate_list = agent.certificate_list();
|
||||||
|
if certificate_list.is_empty() {
|
||||||
|
(None, false)
|
||||||
|
} else if let Some(id) = select_certificate(&certificate_list, certificates, hosts) {
|
||||||
|
(Some(id), false)
|
||||||
|
} else if assignment.allow_certificate_mismatch {
|
||||||
|
(certificate_list.first().cloned(), true)
|
||||||
|
} else {
|
||||||
|
(None, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn build_vhost(
|
fn build_vhost(
|
||||||
agent: &Agent,
|
agent: &Agent,
|
||||||
assignment: &Assignment,
|
assignment: &Assignment,
|
||||||
inventory: Option<&Inventory>,
|
inventory: Option<&Inventory>,
|
||||||
certificates: &[crate::tls::Certificate],
|
certificates: &[crate::tls::Certificate],
|
||||||
) -> Result<crate::vhost::Vhost> {
|
) -> Result<crate::vhost::Vhost> {
|
||||||
let certificate_list = agent.certificate_list();
|
|
||||||
let hosts = assignment_hosts(assignment, agent)?;
|
let hosts = assignment_hosts(assignment, agent)?;
|
||||||
let (certificate_id, allow_certificate_mismatch) = if certificate_list.is_empty() {
|
let (certificate_id, allow_certificate_mismatch) =
|
||||||
(None, false)
|
assignment_certificate(agent, assignment, certificates, &hosts);
|
||||||
} else if let Some(id) = select_certificate(&certificate_list, certificates, &hosts) {
|
|
||||||
(Some(id), false)
|
|
||||||
} else if assignment.allow_certificate_mismatch {
|
|
||||||
(certificate_list.first().cloned(), true)
|
|
||||||
} else {
|
|
||||||
(None, false)
|
|
||||||
};
|
|
||||||
let target = inventory
|
let target = inventory
|
||||||
.and_then(|inventory| {
|
.and_then(|inventory| {
|
||||||
inventory
|
inventory
|
||||||
|
|||||||