├── .env ├── .github └── workflows │ └── docker-publish.yml ├── .gitignore ├── .vscode └── settings.json ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── Readme.md ├── Rocket.toml ├── db └── .empty ├── diesel.toml ├── docker-compose.yaml ├── migrations ├── .keep ├── 2024-12-20-110752_create_tables │ ├── down.sql │ └── up.sql └── 2025-02-24-102626_https │ ├── down.sql │ └── up.sql ├── renovate.json ├── screenshots ├── edit.png ├── home.png ├── http.png └── tls.png ├── src ├── config.rs ├── http.rs ├── https.rs ├── main.rs ├── schema.rs ├── tls.rs └── traefik.rs └── templates ├── base.html.tera ├── config.html.tera ├── http.html.tera ├── https.html.tera ├── index.html.tera ├── nav.html.tera ├── static └── style.css └── tls.html.tera /.env: -------------------------------------------------------------------------------- 1 | DATABASE_URL=db/db.sqlite -------------------------------------------------------------------------------- /.github/workflows/docker-publish.yml: -------------------------------------------------------------------------------- 1 | name: Docker 2 | 3 | # This workflow uses actions that are not certified by GitHub. 4 | # They are provided by a third-party and are governed by 5 | # separate terms of service, privacy policy, and support 6 | # documentation. 7 | 8 | on: 9 | schedule: 10 | - cron: '37 14 * * *' 11 | push: 12 | branches: [ "master", "dev" ] 13 | # Publish semver tags as releases. 14 | tags: [ 'v*.*.*' ] 15 | pull_request: 16 | branches: [ "master" ] 17 | 18 | env: 19 | # Use docker.io for Docker Hub if empty 20 | REGISTRY: ghcr.io 21 | # github.repository as / 22 | IMAGE_NAME: ${{ github.repository }} 23 | 24 | 25 | jobs: 26 | build: 27 | 28 | runs-on: ubuntu-latest 29 | permissions: 30 | contents: read 31 | packages: write 32 | # This is used to complete the identity challenge 33 | # with sigstore/fulcio when running outside of PRs. 34 | id-token: write 35 | 36 | steps: 37 | - name: Checkout repository 38 | uses: actions/checkout@v4 39 | 40 | # Install the cosign tool except on PR 41 | # https://github.com/sigstore/cosign-installer 42 | - name: Install cosign 43 | if: github.event_name != 'pull_request' 44 | uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0 45 | with: 46 | cosign-release: 'v2.2.4' 47 | 48 | # Set up BuildKit Docker container builder to be able to build 49 | # multi-platform images and export cache 50 | # https://github.com/docker/setup-buildx-action 51 | - name: Set up Docker Buildx 52 | uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 53 | 54 | # Login against a Docker registry except on PR 55 | # https://github.com/docker/login-action 56 | - name: Log into registry ${{ env.REGISTRY }} 57 | if: github.event_name != 'pull_request' 58 | uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 59 | with: 60 | registry: ${{ env.REGISTRY }} 61 | username: ${{ github.actor }} 62 | password: ${{ secrets.GITHUB_TOKEN }} 63 | 64 | # Extract metadata (tags, labels) for Docker 65 | # https://github.com/docker/metadata-action 66 | - name: Extract Docker metadata 67 | id: meta 68 | uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 69 | with: 70 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 71 | 72 | # Build and push Docker image with Buildx (don't push on PR) 73 | # https://github.com/docker/build-push-action 74 | - name: Build and push Docker image 75 | id: build-and-push 76 | uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 77 | with: 78 | context: . 79 | push: ${{ github.event_name != 'pull_request' }} 80 | tags: ${{ steps.meta.outputs.tags }} 81 | labels: ${{ steps.meta.outputs.labels }} 82 | cache-from: type=gha 83 | cache-to: type=gha,mode=max 84 | 85 | # Sign the resulting Docker image digest except on PRs. 86 | # This will only write to the public Rekor transparency log when the Docker 87 | # repository is public to avoid leaking data. If you would like to publish 88 | # transparency data even for private images, pass --force to cosign below. 89 | # https://github.com/sigstore/cosign 90 | - name: Sign the published Docker image 91 | if: ${{ github.event_name != 'pull_request' }} 92 | env: 93 | # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable 94 | TAGS: ${{ steps.meta.outputs.tags }} 95 | DIGEST: ${{ steps.build-and-push.outputs.digest }} 96 | # This step uses the identity token to provision an ephemeral certificate 97 | # against the sigstore community Fulcio instance. 98 | run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} 99 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /db/db.sqlite* 3 | /db/config.yaml 4 | /traefik 5 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true, 3 | "files.associations": { 4 | "*.html.tera": "django-html" 5 | } 6 | } -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.24.2" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler2" 16 | version = "2.0.0" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" 19 | 20 | [[package]] 21 | name = "aho-corasick" 22 | version = "1.1.3" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 25 | dependencies = [ 26 | "memchr", 27 | ] 28 | 29 | [[package]] 30 | name = "android-tzdata" 31 | version = "0.1.1" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" 34 | 35 | [[package]] 36 | name = "android_system_properties" 37 | version = "0.1.5" 38 | source = "registry+https://github.com/rust-lang/crates.io-index" 39 | checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" 40 | dependencies = [ 41 | "libc", 42 | ] 43 | 44 | [[package]] 45 | name = "async-stream" 46 | version = "0.3.6" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" 49 | dependencies = [ 50 | "async-stream-impl", 51 | "futures-core", 52 | "pin-project-lite", 53 | ] 54 | 55 | [[package]] 56 | name = "async-stream-impl" 57 | version = "0.3.6" 58 | source = "registry+https://github.com/rust-lang/crates.io-index" 59 | checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" 60 | dependencies = [ 61 | "proc-macro2", 62 | "quote", 63 | "syn", 64 | ] 65 | 66 | [[package]] 67 | name = "async-trait" 68 | version = "0.1.88" 69 | source = "registry+https://github.com/rust-lang/crates.io-index" 70 | checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" 71 | dependencies = [ 72 | "proc-macro2", 73 | "quote", 74 | "syn", 75 | ] 76 | 77 | [[package]] 78 | name = "atomic" 79 | version = "0.5.3" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba" 82 | 83 | [[package]] 84 | name = "atomic" 85 | version = "0.6.0" 86 | source = "registry+https://github.com/rust-lang/crates.io-index" 87 | checksum = "8d818003e740b63afc82337e3160717f4f63078720a810b7b903e70a5d1d2994" 88 | dependencies = [ 89 | "bytemuck", 90 | ] 91 | 92 | [[package]] 93 | name = "autocfg" 94 | version = "1.4.0" 95 | source = "registry+https://github.com/rust-lang/crates.io-index" 96 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 97 | 98 | [[package]] 99 | name = "backtrace" 100 | version = "0.3.75" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002" 103 | dependencies = [ 104 | "addr2line", 105 | "cfg-if", 106 | "libc", 107 | "miniz_oxide", 108 | "object", 109 | "rustc-demangle", 110 | "windows-targets 0.52.6", 111 | ] 112 | 113 | [[package]] 114 | name = "binascii" 115 | version = "0.1.4" 116 | source = "registry+https://github.com/rust-lang/crates.io-index" 117 | checksum = "383d29d513d8764dcdc42ea295d979eb99c3c9f00607b3692cf68a431f7dca72" 118 | 119 | [[package]] 120 | name = "bitflags" 121 | version = "1.3.2" 122 | source = "registry+https://github.com/rust-lang/crates.io-index" 123 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 124 | 125 | [[package]] 126 | name = "bitflags" 127 | version = "2.9.0" 128 | source = "registry+https://github.com/rust-lang/crates.io-index" 129 | checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" 130 | 131 | [[package]] 132 | name = "block-buffer" 133 | version = "0.10.4" 134 | source = "registry+https://github.com/rust-lang/crates.io-index" 135 | checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" 136 | dependencies = [ 137 | "generic-array", 138 | ] 139 | 140 | [[package]] 141 | name = "bstr" 142 | version = "1.12.0" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4" 145 | dependencies = [ 146 | "memchr", 147 | "serde", 148 | ] 149 | 150 | [[package]] 151 | name = "bumpalo" 152 | version = "3.17.0" 153 | source = "registry+https://github.com/rust-lang/crates.io-index" 154 | checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" 155 | 156 | [[package]] 157 | name = "bytemuck" 158 | version = "1.23.0" 159 | source = "registry+https://github.com/rust-lang/crates.io-index" 160 | checksum = "9134a6ef01ce4b366b50689c94f82c14bc72bc5d0386829828a2e2752ef7958c" 161 | 162 | [[package]] 163 | name = "bytes" 164 | version = "1.10.1" 165 | source = "registry+https://github.com/rust-lang/crates.io-index" 166 | checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" 167 | 168 | [[package]] 169 | name = "cc" 170 | version = "1.2.22" 171 | source = "registry+https://github.com/rust-lang/crates.io-index" 172 | checksum = "32db95edf998450acc7881c932f94cd9b05c87b4b2599e8bab064753da4acfd1" 173 | dependencies = [ 174 | "shlex", 175 | ] 176 | 177 | [[package]] 178 | name = "cfg-if" 179 | version = "1.0.0" 180 | source = "registry+https://github.com/rust-lang/crates.io-index" 181 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 182 | 183 | [[package]] 184 | name = "chrono" 185 | version = "0.4.41" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" 188 | dependencies = [ 189 | "android-tzdata", 190 | "iana-time-zone", 191 | "num-traits", 192 | "windows-link", 193 | ] 194 | 195 | [[package]] 196 | name = "chrono-tz" 197 | version = "0.9.0" 198 | source = "registry+https://github.com/rust-lang/crates.io-index" 199 | checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" 200 | dependencies = [ 201 | "chrono", 202 | "chrono-tz-build", 203 | "phf", 204 | ] 205 | 206 | [[package]] 207 | name = "chrono-tz-build" 208 | version = "0.3.0" 209 | source = "registry+https://github.com/rust-lang/crates.io-index" 210 | checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" 211 | dependencies = [ 212 | "parse-zoneinfo", 213 | "phf", 214 | "phf_codegen", 215 | ] 216 | 217 | [[package]] 218 | name = "cookie" 219 | version = "0.18.1" 220 | source = "registry+https://github.com/rust-lang/crates.io-index" 221 | checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" 222 | dependencies = [ 223 | "percent-encoding", 224 | "time", 225 | "version_check", 226 | ] 227 | 228 | [[package]] 229 | name = "core-foundation-sys" 230 | version = "0.8.7" 231 | source = "registry+https://github.com/rust-lang/crates.io-index" 232 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 233 | 234 | [[package]] 235 | name = "cpufeatures" 236 | version = "0.2.17" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" 239 | dependencies = [ 240 | "libc", 241 | ] 242 | 243 | [[package]] 244 | name = "crossbeam-channel" 245 | version = "0.5.15" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" 248 | dependencies = [ 249 | "crossbeam-utils", 250 | ] 251 | 252 | [[package]] 253 | name = "crossbeam-deque" 254 | version = "0.8.6" 255 | source = "registry+https://github.com/rust-lang/crates.io-index" 256 | checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" 257 | dependencies = [ 258 | "crossbeam-epoch", 259 | "crossbeam-utils", 260 | ] 261 | 262 | [[package]] 263 | name = "crossbeam-epoch" 264 | version = "0.9.18" 265 | source = "registry+https://github.com/rust-lang/crates.io-index" 266 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 267 | dependencies = [ 268 | "crossbeam-utils", 269 | ] 270 | 271 | [[package]] 272 | name = "crossbeam-utils" 273 | version = "0.8.21" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" 276 | 277 | [[package]] 278 | name = "crypto-common" 279 | version = "0.1.6" 280 | source = "registry+https://github.com/rust-lang/crates.io-index" 281 | checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" 282 | dependencies = [ 283 | "generic-array", 284 | "typenum", 285 | ] 286 | 287 | [[package]] 288 | name = "darling" 289 | version = "0.20.11" 290 | source = "registry+https://github.com/rust-lang/crates.io-index" 291 | checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" 292 | dependencies = [ 293 | "darling_core", 294 | "darling_macro", 295 | ] 296 | 297 | [[package]] 298 | name = "darling_core" 299 | version = "0.20.11" 300 | source = "registry+https://github.com/rust-lang/crates.io-index" 301 | checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" 302 | dependencies = [ 303 | "fnv", 304 | "ident_case", 305 | "proc-macro2", 306 | "quote", 307 | "strsim", 308 | "syn", 309 | ] 310 | 311 | [[package]] 312 | name = "darling_macro" 313 | version = "0.20.11" 314 | source = "registry+https://github.com/rust-lang/crates.io-index" 315 | checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" 316 | dependencies = [ 317 | "darling_core", 318 | "quote", 319 | "syn", 320 | ] 321 | 322 | [[package]] 323 | name = "deranged" 324 | version = "0.4.0" 325 | source = "registry+https://github.com/rust-lang/crates.io-index" 326 | checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" 327 | dependencies = [ 328 | "powerfmt", 329 | ] 330 | 331 | [[package]] 332 | name = "deunicode" 333 | version = "1.6.2" 334 | source = "registry+https://github.com/rust-lang/crates.io-index" 335 | checksum = "abd57806937c9cc163efc8ea3910e00a62e2aeb0b8119f1793a978088f8f6b04" 336 | 337 | [[package]] 338 | name = "devise" 339 | version = "0.4.2" 340 | source = "registry+https://github.com/rust-lang/crates.io-index" 341 | checksum = "f1d90b0c4c777a2cad215e3c7be59ac7c15adf45cf76317009b7d096d46f651d" 342 | dependencies = [ 343 | "devise_codegen", 344 | "devise_core", 345 | ] 346 | 347 | [[package]] 348 | name = "devise_codegen" 349 | version = "0.4.2" 350 | source = "registry+https://github.com/rust-lang/crates.io-index" 351 | checksum = "71b28680d8be17a570a2334922518be6adc3f58ecc880cbb404eaeb8624fd867" 352 | dependencies = [ 353 | "devise_core", 354 | "quote", 355 | ] 356 | 357 | [[package]] 358 | name = "devise_core" 359 | version = "0.4.2" 360 | source = "registry+https://github.com/rust-lang/crates.io-index" 361 | checksum = "b035a542cf7abf01f2e3c4d5a7acbaebfefe120ae4efc7bde3df98186e4b8af7" 362 | dependencies = [ 363 | "bitflags 2.9.0", 364 | "proc-macro2", 365 | "proc-macro2-diagnostics", 366 | "quote", 367 | "syn", 368 | ] 369 | 370 | [[package]] 371 | name = "diesel" 372 | version = "2.2.10" 373 | source = "registry+https://github.com/rust-lang/crates.io-index" 374 | checksum = "ff3e1edb1f37b4953dd5176916347289ed43d7119cc2e6c7c3f7849ff44ea506" 375 | dependencies = [ 376 | "diesel_derives", 377 | "libsqlite3-sys", 378 | "r2d2", 379 | "time", 380 | ] 381 | 382 | [[package]] 383 | name = "diesel_derives" 384 | version = "2.2.5" 385 | source = "registry+https://github.com/rust-lang/crates.io-index" 386 | checksum = "68d4216021b3ea446fd2047f5c8f8fe6e98af34508a254a01e4d6bc1e844f84d" 387 | dependencies = [ 388 | "diesel_table_macro_syntax", 389 | "dsl_auto_type", 390 | "proc-macro2", 391 | "quote", 392 | "syn", 393 | ] 394 | 395 | [[package]] 396 | name = "diesel_migrations" 397 | version = "2.2.0" 398 | source = "registry+https://github.com/rust-lang/crates.io-index" 399 | checksum = "8a73ce704bad4231f001bff3314d91dce4aba0770cee8b233991859abc15c1f6" 400 | dependencies = [ 401 | "diesel", 402 | "migrations_internals", 403 | "migrations_macros", 404 | ] 405 | 406 | [[package]] 407 | name = "diesel_table_macro_syntax" 408 | version = "0.2.0" 409 | source = "registry+https://github.com/rust-lang/crates.io-index" 410 | checksum = "209c735641a413bc68c4923a9d6ad4bcb3ca306b794edaa7eb0b3228a99ffb25" 411 | dependencies = [ 412 | "syn", 413 | ] 414 | 415 | [[package]] 416 | name = "digest" 417 | version = "0.10.7" 418 | source = "registry+https://github.com/rust-lang/crates.io-index" 419 | checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" 420 | dependencies = [ 421 | "block-buffer", 422 | "crypto-common", 423 | ] 424 | 425 | [[package]] 426 | name = "dsl_auto_type" 427 | version = "0.1.3" 428 | source = "registry+https://github.com/rust-lang/crates.io-index" 429 | checksum = "139ae9aca7527f85f26dd76483eb38533fd84bd571065da1739656ef71c5ff5b" 430 | dependencies = [ 431 | "darling", 432 | "either", 433 | "heck", 434 | "proc-macro2", 435 | "quote", 436 | "syn", 437 | ] 438 | 439 | [[package]] 440 | name = "either" 441 | version = "1.15.0" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" 444 | 445 | [[package]] 446 | name = "encoding_rs" 447 | version = "0.8.35" 448 | source = "registry+https://github.com/rust-lang/crates.io-index" 449 | checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 450 | dependencies = [ 451 | "cfg-if", 452 | ] 453 | 454 | [[package]] 455 | name = "equivalent" 456 | version = "1.0.2" 457 | source = "registry+https://github.com/rust-lang/crates.io-index" 458 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" 459 | 460 | [[package]] 461 | name = "errno" 462 | version = "0.3.11" 463 | source = "registry+https://github.com/rust-lang/crates.io-index" 464 | checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e" 465 | dependencies = [ 466 | "libc", 467 | "windows-sys 0.59.0", 468 | ] 469 | 470 | [[package]] 471 | name = "fallible-iterator" 472 | version = "0.3.0" 473 | source = "registry+https://github.com/rust-lang/crates.io-index" 474 | checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" 475 | 476 | [[package]] 477 | name = "fallible-streaming-iterator" 478 | version = "0.1.9" 479 | source = "registry+https://github.com/rust-lang/crates.io-index" 480 | checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" 481 | 482 | [[package]] 483 | name = "fastrand" 484 | version = "2.3.0" 485 | source = "registry+https://github.com/rust-lang/crates.io-index" 486 | checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" 487 | 488 | [[package]] 489 | name = "figment" 490 | version = "0.10.19" 491 | source = "registry+https://github.com/rust-lang/crates.io-index" 492 | checksum = "8cb01cd46b0cf372153850f4c6c272d9cbea2da513e07538405148f95bd789f3" 493 | dependencies = [ 494 | "atomic 0.6.0", 495 | "pear", 496 | "serde", 497 | "toml", 498 | "uncased", 499 | "version_check", 500 | ] 501 | 502 | [[package]] 503 | name = "filetime" 504 | version = "0.2.25" 505 | source = "registry+https://github.com/rust-lang/crates.io-index" 506 | checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" 507 | dependencies = [ 508 | "cfg-if", 509 | "libc", 510 | "libredox", 511 | "windows-sys 0.59.0", 512 | ] 513 | 514 | [[package]] 515 | name = "fnv" 516 | version = "1.0.7" 517 | source = "registry+https://github.com/rust-lang/crates.io-index" 518 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 519 | 520 | [[package]] 521 | name = "foldhash" 522 | version = "0.1.5" 523 | source = "registry+https://github.com/rust-lang/crates.io-index" 524 | checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" 525 | 526 | [[package]] 527 | name = "fsevent-sys" 528 | version = "4.1.0" 529 | source = "registry+https://github.com/rust-lang/crates.io-index" 530 | checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" 531 | dependencies = [ 532 | "libc", 533 | ] 534 | 535 | [[package]] 536 | name = "futures" 537 | version = "0.3.31" 538 | source = "registry+https://github.com/rust-lang/crates.io-index" 539 | checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" 540 | dependencies = [ 541 | "futures-channel", 542 | "futures-core", 543 | "futures-io", 544 | "futures-sink", 545 | "futures-task", 546 | "futures-util", 547 | ] 548 | 549 | [[package]] 550 | name = "futures-channel" 551 | version = "0.3.31" 552 | source = "registry+https://github.com/rust-lang/crates.io-index" 553 | checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 554 | dependencies = [ 555 | "futures-core", 556 | "futures-sink", 557 | ] 558 | 559 | [[package]] 560 | name = "futures-core" 561 | version = "0.3.31" 562 | source = "registry+https://github.com/rust-lang/crates.io-index" 563 | checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 564 | 565 | [[package]] 566 | name = "futures-io" 567 | version = "0.3.31" 568 | source = "registry+https://github.com/rust-lang/crates.io-index" 569 | checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" 570 | 571 | [[package]] 572 | name = "futures-sink" 573 | version = "0.3.31" 574 | source = "registry+https://github.com/rust-lang/crates.io-index" 575 | checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 576 | 577 | [[package]] 578 | name = "futures-task" 579 | version = "0.3.31" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 582 | 583 | [[package]] 584 | name = "futures-util" 585 | version = "0.3.31" 586 | source = "registry+https://github.com/rust-lang/crates.io-index" 587 | checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 588 | dependencies = [ 589 | "futures-channel", 590 | "futures-core", 591 | "futures-io", 592 | "futures-sink", 593 | "futures-task", 594 | "memchr", 595 | "pin-project-lite", 596 | "pin-utils", 597 | "slab", 598 | ] 599 | 600 | [[package]] 601 | name = "generator" 602 | version = "0.7.5" 603 | source = "registry+https://github.com/rust-lang/crates.io-index" 604 | checksum = "5cc16584ff22b460a382b7feec54b23d2908d858152e5739a120b949293bd74e" 605 | dependencies = [ 606 | "cc", 607 | "libc", 608 | "log", 609 | "rustversion", 610 | "windows", 611 | ] 612 | 613 | [[package]] 614 | name = "generic-array" 615 | version = "0.14.7" 616 | source = "registry+https://github.com/rust-lang/crates.io-index" 617 | checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" 618 | dependencies = [ 619 | "typenum", 620 | "version_check", 621 | ] 622 | 623 | [[package]] 624 | name = "getrandom" 625 | version = "0.2.16" 626 | source = "registry+https://github.com/rust-lang/crates.io-index" 627 | checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" 628 | dependencies = [ 629 | "cfg-if", 630 | "libc", 631 | "wasi 0.11.0+wasi-snapshot-preview1", 632 | ] 633 | 634 | [[package]] 635 | name = "getrandom" 636 | version = "0.3.3" 637 | source = "registry+https://github.com/rust-lang/crates.io-index" 638 | checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" 639 | dependencies = [ 640 | "cfg-if", 641 | "libc", 642 | "r-efi", 643 | "wasi 0.14.2+wasi-0.2.4", 644 | ] 645 | 646 | [[package]] 647 | name = "gimli" 648 | version = "0.31.1" 649 | source = "registry+https://github.com/rust-lang/crates.io-index" 650 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" 651 | 652 | [[package]] 653 | name = "glob" 654 | version = "0.3.2" 655 | source = "registry+https://github.com/rust-lang/crates.io-index" 656 | checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" 657 | 658 | [[package]] 659 | name = "globset" 660 | version = "0.4.16" 661 | source = "registry+https://github.com/rust-lang/crates.io-index" 662 | checksum = "54a1028dfc5f5df5da8a56a73e6c153c9a9708ec57232470703592a3f18e49f5" 663 | dependencies = [ 664 | "aho-corasick", 665 | "bstr", 666 | "log", 667 | "regex-automata 0.4.9", 668 | "regex-syntax 0.8.5", 669 | ] 670 | 671 | [[package]] 672 | name = "globwalk" 673 | version = "0.9.1" 674 | source = "registry+https://github.com/rust-lang/crates.io-index" 675 | checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757" 676 | dependencies = [ 677 | "bitflags 2.9.0", 678 | "ignore", 679 | "walkdir", 680 | ] 681 | 682 | [[package]] 683 | name = "h2" 684 | version = "0.3.26" 685 | source = "registry+https://github.com/rust-lang/crates.io-index" 686 | checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" 687 | dependencies = [ 688 | "bytes", 689 | "fnv", 690 | "futures-core", 691 | "futures-sink", 692 | "futures-util", 693 | "http 0.2.12", 694 | "indexmap", 695 | "slab", 696 | "tokio", 697 | "tokio-util", 698 | "tracing", 699 | ] 700 | 701 | [[package]] 702 | name = "hashbrown" 703 | version = "0.15.3" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | checksum = "84b26c544d002229e640969970a2e74021aadf6e2f96372b9c58eff97de08eb3" 706 | dependencies = [ 707 | "foldhash", 708 | ] 709 | 710 | [[package]] 711 | name = "hashlink" 712 | version = "0.10.0" 713 | source = "registry+https://github.com/rust-lang/crates.io-index" 714 | checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1" 715 | dependencies = [ 716 | "hashbrown", 717 | ] 718 | 719 | [[package]] 720 | name = "heck" 721 | version = "0.5.0" 722 | source = "registry+https://github.com/rust-lang/crates.io-index" 723 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 724 | 725 | [[package]] 726 | name = "hermit-abi" 727 | version = "0.3.9" 728 | source = "registry+https://github.com/rust-lang/crates.io-index" 729 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 730 | 731 | [[package]] 732 | name = "hermit-abi" 733 | version = "0.5.1" 734 | source = "registry+https://github.com/rust-lang/crates.io-index" 735 | checksum = "f154ce46856750ed433c8649605bf7ed2de3bc35fd9d2a9f30cddd873c80cb08" 736 | 737 | [[package]] 738 | name = "http" 739 | version = "0.2.12" 740 | source = "registry+https://github.com/rust-lang/crates.io-index" 741 | checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" 742 | dependencies = [ 743 | "bytes", 744 | "fnv", 745 | "itoa", 746 | ] 747 | 748 | [[package]] 749 | name = "http" 750 | version = "1.3.1" 751 | source = "registry+https://github.com/rust-lang/crates.io-index" 752 | checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" 753 | dependencies = [ 754 | "bytes", 755 | "fnv", 756 | "itoa", 757 | ] 758 | 759 | [[package]] 760 | name = "http-body" 761 | version = "0.4.6" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" 764 | dependencies = [ 765 | "bytes", 766 | "http 0.2.12", 767 | "pin-project-lite", 768 | ] 769 | 770 | [[package]] 771 | name = "httparse" 772 | version = "1.10.1" 773 | source = "registry+https://github.com/rust-lang/crates.io-index" 774 | checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" 775 | 776 | [[package]] 777 | name = "httpdate" 778 | version = "1.0.3" 779 | source = "registry+https://github.com/rust-lang/crates.io-index" 780 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" 781 | 782 | [[package]] 783 | name = "humansize" 784 | version = "2.1.3" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" 787 | dependencies = [ 788 | "libm", 789 | ] 790 | 791 | [[package]] 792 | name = "hyper" 793 | version = "0.14.32" 794 | source = "registry+https://github.com/rust-lang/crates.io-index" 795 | checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" 796 | dependencies = [ 797 | "bytes", 798 | "futures-channel", 799 | "futures-core", 800 | "futures-util", 801 | "h2", 802 | "http 0.2.12", 803 | "http-body", 804 | "httparse", 805 | "httpdate", 806 | "itoa", 807 | "pin-project-lite", 808 | "socket2", 809 | "tokio", 810 | "tower-service", 811 | "tracing", 812 | "want", 813 | ] 814 | 815 | [[package]] 816 | name = "iana-time-zone" 817 | version = "0.1.63" 818 | source = "registry+https://github.com/rust-lang/crates.io-index" 819 | checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" 820 | dependencies = [ 821 | "android_system_properties", 822 | "core-foundation-sys", 823 | "iana-time-zone-haiku", 824 | "js-sys", 825 | "log", 826 | "wasm-bindgen", 827 | "windows-core", 828 | ] 829 | 830 | [[package]] 831 | name = "iana-time-zone-haiku" 832 | version = "0.1.2" 833 | source = "registry+https://github.com/rust-lang/crates.io-index" 834 | checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" 835 | dependencies = [ 836 | "cc", 837 | ] 838 | 839 | [[package]] 840 | name = "ident_case" 841 | version = "1.0.1" 842 | source = "registry+https://github.com/rust-lang/crates.io-index" 843 | checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" 844 | 845 | [[package]] 846 | name = "ignore" 847 | version = "0.4.23" 848 | source = "registry+https://github.com/rust-lang/crates.io-index" 849 | checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" 850 | dependencies = [ 851 | "crossbeam-deque", 852 | "globset", 853 | "log", 854 | "memchr", 855 | "regex-automata 0.4.9", 856 | "same-file", 857 | "walkdir", 858 | "winapi-util", 859 | ] 860 | 861 | [[package]] 862 | name = "indexmap" 863 | version = "2.9.0" 864 | source = "registry+https://github.com/rust-lang/crates.io-index" 865 | checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" 866 | dependencies = [ 867 | "equivalent", 868 | "hashbrown", 869 | "serde", 870 | ] 871 | 872 | [[package]] 873 | name = "inlinable_string" 874 | version = "0.1.15" 875 | source = "registry+https://github.com/rust-lang/crates.io-index" 876 | checksum = "c8fae54786f62fb2918dcfae3d568594e50eb9b5c25bf04371af6fe7516452fb" 877 | 878 | [[package]] 879 | name = "inotify" 880 | version = "0.9.6" 881 | source = "registry+https://github.com/rust-lang/crates.io-index" 882 | checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" 883 | dependencies = [ 884 | "bitflags 1.3.2", 885 | "inotify-sys", 886 | "libc", 887 | ] 888 | 889 | [[package]] 890 | name = "inotify-sys" 891 | version = "0.1.5" 892 | source = "registry+https://github.com/rust-lang/crates.io-index" 893 | checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" 894 | dependencies = [ 895 | "libc", 896 | ] 897 | 898 | [[package]] 899 | name = "is-terminal" 900 | version = "0.4.16" 901 | source = "registry+https://github.com/rust-lang/crates.io-index" 902 | checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9" 903 | dependencies = [ 904 | "hermit-abi 0.5.1", 905 | "libc", 906 | "windows-sys 0.59.0", 907 | ] 908 | 909 | [[package]] 910 | name = "itertools" 911 | version = "0.14.0" 912 | source = "registry+https://github.com/rust-lang/crates.io-index" 913 | checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" 914 | dependencies = [ 915 | "either", 916 | ] 917 | 918 | [[package]] 919 | name = "itoa" 920 | version = "1.0.15" 921 | source = "registry+https://github.com/rust-lang/crates.io-index" 922 | checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" 923 | 924 | [[package]] 925 | name = "js-sys" 926 | version = "0.3.77" 927 | source = "registry+https://github.com/rust-lang/crates.io-index" 928 | checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" 929 | dependencies = [ 930 | "once_cell", 931 | "wasm-bindgen", 932 | ] 933 | 934 | [[package]] 935 | name = "kqueue" 936 | version = "1.1.1" 937 | source = "registry+https://github.com/rust-lang/crates.io-index" 938 | checksum = "eac30106d7dce88daf4a3fcb4879ea939476d5074a9b7ddd0fb97fa4bed5596a" 939 | dependencies = [ 940 | "kqueue-sys", 941 | "libc", 942 | ] 943 | 944 | [[package]] 945 | name = "kqueue-sys" 946 | version = "1.0.4" 947 | source = "registry+https://github.com/rust-lang/crates.io-index" 948 | checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" 949 | dependencies = [ 950 | "bitflags 1.3.2", 951 | "libc", 952 | ] 953 | 954 | [[package]] 955 | name = "lazy_static" 956 | version = "1.5.0" 957 | source = "registry+https://github.com/rust-lang/crates.io-index" 958 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 959 | 960 | [[package]] 961 | name = "libc" 962 | version = "0.2.172" 963 | source = "registry+https://github.com/rust-lang/crates.io-index" 964 | checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" 965 | 966 | [[package]] 967 | name = "libm" 968 | version = "0.2.15" 969 | source = "registry+https://github.com/rust-lang/crates.io-index" 970 | checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" 971 | 972 | [[package]] 973 | name = "libredox" 974 | version = "0.1.3" 975 | source = "registry+https://github.com/rust-lang/crates.io-index" 976 | checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" 977 | dependencies = [ 978 | "bitflags 2.9.0", 979 | "libc", 980 | "redox_syscall", 981 | ] 982 | 983 | [[package]] 984 | name = "libsqlite3-sys" 985 | version = "0.33.0" 986 | source = "registry+https://github.com/rust-lang/crates.io-index" 987 | checksum = "947e6816f7825b2b45027c2c32e7085da9934defa535de4a6a46b10a4d5257fa" 988 | dependencies = [ 989 | "cc", 990 | "pkg-config", 991 | "vcpkg", 992 | ] 993 | 994 | [[package]] 995 | name = "linux-raw-sys" 996 | version = "0.9.4" 997 | source = "registry+https://github.com/rust-lang/crates.io-index" 998 | checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" 999 | 1000 | [[package]] 1001 | name = "lock_api" 1002 | version = "0.4.12" 1003 | source = "registry+https://github.com/rust-lang/crates.io-index" 1004 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 1005 | dependencies = [ 1006 | "autocfg", 1007 | "scopeguard", 1008 | ] 1009 | 1010 | [[package]] 1011 | name = "log" 1012 | version = "0.4.27" 1013 | source = "registry+https://github.com/rust-lang/crates.io-index" 1014 | checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" 1015 | 1016 | [[package]] 1017 | name = "loom" 1018 | version = "0.5.6" 1019 | source = "registry+https://github.com/rust-lang/crates.io-index" 1020 | checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5" 1021 | dependencies = [ 1022 | "cfg-if", 1023 | "generator", 1024 | "scoped-tls", 1025 | "serde", 1026 | "serde_json", 1027 | "tracing", 1028 | "tracing-subscriber", 1029 | ] 1030 | 1031 | [[package]] 1032 | name = "matchers" 1033 | version = "0.1.0" 1034 | source = "registry+https://github.com/rust-lang/crates.io-index" 1035 | checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" 1036 | dependencies = [ 1037 | "regex-automata 0.1.10", 1038 | ] 1039 | 1040 | [[package]] 1041 | name = "memchr" 1042 | version = "2.7.4" 1043 | source = "registry+https://github.com/rust-lang/crates.io-index" 1044 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 1045 | 1046 | [[package]] 1047 | name = "migrations_internals" 1048 | version = "2.2.0" 1049 | source = "registry+https://github.com/rust-lang/crates.io-index" 1050 | checksum = "fd01039851e82f8799046eabbb354056283fb265c8ec0996af940f4e85a380ff" 1051 | dependencies = [ 1052 | "serde", 1053 | "toml", 1054 | ] 1055 | 1056 | [[package]] 1057 | name = "migrations_macros" 1058 | version = "2.2.0" 1059 | source = "registry+https://github.com/rust-lang/crates.io-index" 1060 | checksum = "ffb161cc72176cb37aa47f1fc520d3ef02263d67d661f44f05d05a079e1237fd" 1061 | dependencies = [ 1062 | "migrations_internals", 1063 | "proc-macro2", 1064 | "quote", 1065 | ] 1066 | 1067 | [[package]] 1068 | name = "mime" 1069 | version = "0.3.17" 1070 | source = "registry+https://github.com/rust-lang/crates.io-index" 1071 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 1072 | 1073 | [[package]] 1074 | name = "miniz_oxide" 1075 | version = "0.8.8" 1076 | source = "registry+https://github.com/rust-lang/crates.io-index" 1077 | checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a" 1078 | dependencies = [ 1079 | "adler2", 1080 | ] 1081 | 1082 | [[package]] 1083 | name = "mio" 1084 | version = "0.8.11" 1085 | source = "registry+https://github.com/rust-lang/crates.io-index" 1086 | checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" 1087 | dependencies = [ 1088 | "libc", 1089 | "log", 1090 | "wasi 0.11.0+wasi-snapshot-preview1", 1091 | "windows-sys 0.48.0", 1092 | ] 1093 | 1094 | [[package]] 1095 | name = "mio" 1096 | version = "1.0.3" 1097 | source = "registry+https://github.com/rust-lang/crates.io-index" 1098 | checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" 1099 | dependencies = [ 1100 | "libc", 1101 | "wasi 0.11.0+wasi-snapshot-preview1", 1102 | "windows-sys 0.52.0", 1103 | ] 1104 | 1105 | [[package]] 1106 | name = "multer" 1107 | version = "3.1.0" 1108 | source = "registry+https://github.com/rust-lang/crates.io-index" 1109 | checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b" 1110 | dependencies = [ 1111 | "bytes", 1112 | "encoding_rs", 1113 | "futures-util", 1114 | "http 1.3.1", 1115 | "httparse", 1116 | "memchr", 1117 | "mime", 1118 | "spin", 1119 | "tokio", 1120 | "tokio-util", 1121 | "version_check", 1122 | ] 1123 | 1124 | [[package]] 1125 | name = "normpath" 1126 | version = "1.3.0" 1127 | source = "registry+https://github.com/rust-lang/crates.io-index" 1128 | checksum = "c8911957c4b1549ac0dc74e30db9c8b0e66ddcd6d7acc33098f4c63a64a6d7ed" 1129 | dependencies = [ 1130 | "windows-sys 0.59.0", 1131 | ] 1132 | 1133 | [[package]] 1134 | name = "notify" 1135 | version = "6.1.1" 1136 | source = "registry+https://github.com/rust-lang/crates.io-index" 1137 | checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" 1138 | dependencies = [ 1139 | "bitflags 2.9.0", 1140 | "crossbeam-channel", 1141 | "filetime", 1142 | "fsevent-sys", 1143 | "inotify", 1144 | "kqueue", 1145 | "libc", 1146 | "log", 1147 | "mio 0.8.11", 1148 | "walkdir", 1149 | "windows-sys 0.48.0", 1150 | ] 1151 | 1152 | [[package]] 1153 | name = "nu-ansi-term" 1154 | version = "0.46.0" 1155 | source = "registry+https://github.com/rust-lang/crates.io-index" 1156 | checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" 1157 | dependencies = [ 1158 | "overload", 1159 | "winapi", 1160 | ] 1161 | 1162 | [[package]] 1163 | name = "num-conv" 1164 | version = "0.1.0" 1165 | source = "registry+https://github.com/rust-lang/crates.io-index" 1166 | checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" 1167 | 1168 | [[package]] 1169 | name = "num-traits" 1170 | version = "0.2.19" 1171 | source = "registry+https://github.com/rust-lang/crates.io-index" 1172 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 1173 | dependencies = [ 1174 | "autocfg", 1175 | ] 1176 | 1177 | [[package]] 1178 | name = "num_cpus" 1179 | version = "1.16.0" 1180 | source = "registry+https://github.com/rust-lang/crates.io-index" 1181 | checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" 1182 | dependencies = [ 1183 | "hermit-abi 0.3.9", 1184 | "libc", 1185 | ] 1186 | 1187 | [[package]] 1188 | name = "object" 1189 | version = "0.36.7" 1190 | source = "registry+https://github.com/rust-lang/crates.io-index" 1191 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" 1192 | dependencies = [ 1193 | "memchr", 1194 | ] 1195 | 1196 | [[package]] 1197 | name = "once_cell" 1198 | version = "1.21.3" 1199 | source = "registry+https://github.com/rust-lang/crates.io-index" 1200 | checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" 1201 | 1202 | [[package]] 1203 | name = "overload" 1204 | version = "0.1.1" 1205 | source = "registry+https://github.com/rust-lang/crates.io-index" 1206 | checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" 1207 | 1208 | [[package]] 1209 | name = "parking_lot" 1210 | version = "0.12.3" 1211 | source = "registry+https://github.com/rust-lang/crates.io-index" 1212 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 1213 | dependencies = [ 1214 | "lock_api", 1215 | "parking_lot_core", 1216 | ] 1217 | 1218 | [[package]] 1219 | name = "parking_lot_core" 1220 | version = "0.9.10" 1221 | source = "registry+https://github.com/rust-lang/crates.io-index" 1222 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 1223 | dependencies = [ 1224 | "cfg-if", 1225 | "libc", 1226 | "redox_syscall", 1227 | "smallvec", 1228 | "windows-targets 0.52.6", 1229 | ] 1230 | 1231 | [[package]] 1232 | name = "parse-zoneinfo" 1233 | version = "0.3.1" 1234 | source = "registry+https://github.com/rust-lang/crates.io-index" 1235 | checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" 1236 | dependencies = [ 1237 | "regex", 1238 | ] 1239 | 1240 | [[package]] 1241 | name = "pear" 1242 | version = "0.2.9" 1243 | source = "registry+https://github.com/rust-lang/crates.io-index" 1244 | checksum = "bdeeaa00ce488657faba8ebf44ab9361f9365a97bd39ffb8a60663f57ff4b467" 1245 | dependencies = [ 1246 | "inlinable_string", 1247 | "pear_codegen", 1248 | "yansi", 1249 | ] 1250 | 1251 | [[package]] 1252 | name = "pear_codegen" 1253 | version = "0.2.9" 1254 | source = "registry+https://github.com/rust-lang/crates.io-index" 1255 | checksum = "4bab5b985dc082b345f812b7df84e1bef27e7207b39e448439ba8bd69c93f147" 1256 | dependencies = [ 1257 | "proc-macro2", 1258 | "proc-macro2-diagnostics", 1259 | "quote", 1260 | "syn", 1261 | ] 1262 | 1263 | [[package]] 1264 | name = "percent-encoding" 1265 | version = "2.3.1" 1266 | source = "registry+https://github.com/rust-lang/crates.io-index" 1267 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 1268 | 1269 | [[package]] 1270 | name = "pest" 1271 | version = "2.8.0" 1272 | source = "registry+https://github.com/rust-lang/crates.io-index" 1273 | checksum = "198db74531d58c70a361c42201efde7e2591e976d518caf7662a47dc5720e7b6" 1274 | dependencies = [ 1275 | "memchr", 1276 | "thiserror", 1277 | "ucd-trie", 1278 | ] 1279 | 1280 | [[package]] 1281 | name = "pest_derive" 1282 | version = "2.8.0" 1283 | source = "registry+https://github.com/rust-lang/crates.io-index" 1284 | checksum = "d725d9cfd79e87dccc9341a2ef39d1b6f6353d68c4b33c177febbe1a402c97c5" 1285 | dependencies = [ 1286 | "pest", 1287 | "pest_generator", 1288 | ] 1289 | 1290 | [[package]] 1291 | name = "pest_generator" 1292 | version = "2.8.0" 1293 | source = "registry+https://github.com/rust-lang/crates.io-index" 1294 | checksum = "db7d01726be8ab66ab32f9df467ae8b1148906685bbe75c82d1e65d7f5b3f841" 1295 | dependencies = [ 1296 | "pest", 1297 | "pest_meta", 1298 | "proc-macro2", 1299 | "quote", 1300 | "syn", 1301 | ] 1302 | 1303 | [[package]] 1304 | name = "pest_meta" 1305 | version = "2.8.0" 1306 | source = "registry+https://github.com/rust-lang/crates.io-index" 1307 | checksum = "7f9f832470494906d1fca5329f8ab5791cc60beb230c74815dff541cbd2b5ca0" 1308 | dependencies = [ 1309 | "once_cell", 1310 | "pest", 1311 | "sha2", 1312 | ] 1313 | 1314 | [[package]] 1315 | name = "phf" 1316 | version = "0.11.3" 1317 | source = "registry+https://github.com/rust-lang/crates.io-index" 1318 | checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" 1319 | dependencies = [ 1320 | "phf_shared", 1321 | ] 1322 | 1323 | [[package]] 1324 | name = "phf_codegen" 1325 | version = "0.11.3" 1326 | source = "registry+https://github.com/rust-lang/crates.io-index" 1327 | checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" 1328 | dependencies = [ 1329 | "phf_generator", 1330 | "phf_shared", 1331 | ] 1332 | 1333 | [[package]] 1334 | name = "phf_generator" 1335 | version = "0.11.3" 1336 | source = "registry+https://github.com/rust-lang/crates.io-index" 1337 | checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" 1338 | dependencies = [ 1339 | "phf_shared", 1340 | "rand", 1341 | ] 1342 | 1343 | [[package]] 1344 | name = "phf_shared" 1345 | version = "0.11.3" 1346 | source = "registry+https://github.com/rust-lang/crates.io-index" 1347 | checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" 1348 | dependencies = [ 1349 | "siphasher", 1350 | ] 1351 | 1352 | [[package]] 1353 | name = "pin-project-lite" 1354 | version = "0.2.16" 1355 | source = "registry+https://github.com/rust-lang/crates.io-index" 1356 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 1357 | 1358 | [[package]] 1359 | name = "pin-utils" 1360 | version = "0.1.0" 1361 | source = "registry+https://github.com/rust-lang/crates.io-index" 1362 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1363 | 1364 | [[package]] 1365 | name = "pkg-config" 1366 | version = "0.3.32" 1367 | source = "registry+https://github.com/rust-lang/crates.io-index" 1368 | checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" 1369 | 1370 | [[package]] 1371 | name = "powerfmt" 1372 | version = "0.2.0" 1373 | source = "registry+https://github.com/rust-lang/crates.io-index" 1374 | checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" 1375 | 1376 | [[package]] 1377 | name = "ppv-lite86" 1378 | version = "0.2.21" 1379 | source = "registry+https://github.com/rust-lang/crates.io-index" 1380 | checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" 1381 | dependencies = [ 1382 | "zerocopy", 1383 | ] 1384 | 1385 | [[package]] 1386 | name = "proc-macro2" 1387 | version = "1.0.95" 1388 | source = "registry+https://github.com/rust-lang/crates.io-index" 1389 | checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" 1390 | dependencies = [ 1391 | "unicode-ident", 1392 | ] 1393 | 1394 | [[package]] 1395 | name = "proc-macro2-diagnostics" 1396 | version = "0.10.1" 1397 | source = "registry+https://github.com/rust-lang/crates.io-index" 1398 | checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" 1399 | dependencies = [ 1400 | "proc-macro2", 1401 | "quote", 1402 | "syn", 1403 | "version_check", 1404 | "yansi", 1405 | ] 1406 | 1407 | [[package]] 1408 | name = "quote" 1409 | version = "1.0.40" 1410 | source = "registry+https://github.com/rust-lang/crates.io-index" 1411 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 1412 | dependencies = [ 1413 | "proc-macro2", 1414 | ] 1415 | 1416 | [[package]] 1417 | name = "r-efi" 1418 | version = "5.2.0" 1419 | source = "registry+https://github.com/rust-lang/crates.io-index" 1420 | checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" 1421 | 1422 | [[package]] 1423 | name = "r2d2" 1424 | version = "0.8.10" 1425 | source = "registry+https://github.com/rust-lang/crates.io-index" 1426 | checksum = "51de85fb3fb6524929c8a2eb85e6b6d363de4e8c48f9e2c2eac4944abc181c93" 1427 | dependencies = [ 1428 | "log", 1429 | "parking_lot", 1430 | "scheduled-thread-pool", 1431 | ] 1432 | 1433 | [[package]] 1434 | name = "rand" 1435 | version = "0.8.5" 1436 | source = "registry+https://github.com/rust-lang/crates.io-index" 1437 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 1438 | dependencies = [ 1439 | "libc", 1440 | "rand_chacha", 1441 | "rand_core", 1442 | ] 1443 | 1444 | [[package]] 1445 | name = "rand_chacha" 1446 | version = "0.3.1" 1447 | source = "registry+https://github.com/rust-lang/crates.io-index" 1448 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 1449 | dependencies = [ 1450 | "ppv-lite86", 1451 | "rand_core", 1452 | ] 1453 | 1454 | [[package]] 1455 | name = "rand_core" 1456 | version = "0.6.4" 1457 | source = "registry+https://github.com/rust-lang/crates.io-index" 1458 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1459 | dependencies = [ 1460 | "getrandom 0.2.16", 1461 | ] 1462 | 1463 | [[package]] 1464 | name = "redox_syscall" 1465 | version = "0.5.12" 1466 | source = "registry+https://github.com/rust-lang/crates.io-index" 1467 | checksum = "928fca9cf2aa042393a8325b9ead81d2f0df4cb12e1e24cef072922ccd99c5af" 1468 | dependencies = [ 1469 | "bitflags 2.9.0", 1470 | ] 1471 | 1472 | [[package]] 1473 | name = "ref-cast" 1474 | version = "1.0.24" 1475 | source = "registry+https://github.com/rust-lang/crates.io-index" 1476 | checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf" 1477 | dependencies = [ 1478 | "ref-cast-impl", 1479 | ] 1480 | 1481 | [[package]] 1482 | name = "ref-cast-impl" 1483 | version = "1.0.24" 1484 | source = "registry+https://github.com/rust-lang/crates.io-index" 1485 | checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7" 1486 | dependencies = [ 1487 | "proc-macro2", 1488 | "quote", 1489 | "syn", 1490 | ] 1491 | 1492 | [[package]] 1493 | name = "regex" 1494 | version = "1.11.1" 1495 | source = "registry+https://github.com/rust-lang/crates.io-index" 1496 | checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" 1497 | dependencies = [ 1498 | "aho-corasick", 1499 | "memchr", 1500 | "regex-automata 0.4.9", 1501 | "regex-syntax 0.8.5", 1502 | ] 1503 | 1504 | [[package]] 1505 | name = "regex-automata" 1506 | version = "0.1.10" 1507 | source = "registry+https://github.com/rust-lang/crates.io-index" 1508 | checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" 1509 | dependencies = [ 1510 | "regex-syntax 0.6.29", 1511 | ] 1512 | 1513 | [[package]] 1514 | name = "regex-automata" 1515 | version = "0.4.9" 1516 | source = "registry+https://github.com/rust-lang/crates.io-index" 1517 | checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" 1518 | dependencies = [ 1519 | "aho-corasick", 1520 | "memchr", 1521 | "regex-syntax 0.8.5", 1522 | ] 1523 | 1524 | [[package]] 1525 | name = "regex-syntax" 1526 | version = "0.6.29" 1527 | source = "registry+https://github.com/rust-lang/crates.io-index" 1528 | checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" 1529 | 1530 | [[package]] 1531 | name = "regex-syntax" 1532 | version = "0.8.5" 1533 | source = "registry+https://github.com/rust-lang/crates.io-index" 1534 | checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" 1535 | 1536 | [[package]] 1537 | name = "rocket" 1538 | version = "0.5.1" 1539 | source = "registry+https://github.com/rust-lang/crates.io-index" 1540 | checksum = "a516907296a31df7dc04310e7043b61d71954d703b603cc6867a026d7e72d73f" 1541 | dependencies = [ 1542 | "async-stream", 1543 | "async-trait", 1544 | "atomic 0.5.3", 1545 | "binascii", 1546 | "bytes", 1547 | "either", 1548 | "figment", 1549 | "futures", 1550 | "indexmap", 1551 | "log", 1552 | "memchr", 1553 | "multer", 1554 | "num_cpus", 1555 | "parking_lot", 1556 | "pin-project-lite", 1557 | "rand", 1558 | "ref-cast", 1559 | "rocket_codegen", 1560 | "rocket_http", 1561 | "serde", 1562 | "state", 1563 | "tempfile", 1564 | "time", 1565 | "tokio", 1566 | "tokio-stream", 1567 | "tokio-util", 1568 | "ubyte", 1569 | "version_check", 1570 | "yansi", 1571 | ] 1572 | 1573 | [[package]] 1574 | name = "rocket_codegen" 1575 | version = "0.5.1" 1576 | source = "registry+https://github.com/rust-lang/crates.io-index" 1577 | checksum = "575d32d7ec1a9770108c879fc7c47815a80073f96ca07ff9525a94fcede1dd46" 1578 | dependencies = [ 1579 | "devise", 1580 | "glob", 1581 | "indexmap", 1582 | "proc-macro2", 1583 | "quote", 1584 | "rocket_http", 1585 | "syn", 1586 | "unicode-xid", 1587 | "version_check", 1588 | ] 1589 | 1590 | [[package]] 1591 | name = "rocket_dyn_templates" 1592 | version = "0.2.0" 1593 | source = "registry+https://github.com/rust-lang/crates.io-index" 1594 | checksum = "5bbab919c9e67df3f7ac6624a32ef897df4cd61c0969f4d66f3ced0534660d7a" 1595 | dependencies = [ 1596 | "normpath", 1597 | "notify", 1598 | "rocket", 1599 | "tera", 1600 | "walkdir", 1601 | ] 1602 | 1603 | [[package]] 1604 | name = "rocket_http" 1605 | version = "0.5.1" 1606 | source = "registry+https://github.com/rust-lang/crates.io-index" 1607 | checksum = "e274915a20ee3065f611c044bd63c40757396b6dbc057d6046aec27f14f882b9" 1608 | dependencies = [ 1609 | "cookie", 1610 | "either", 1611 | "futures", 1612 | "http 0.2.12", 1613 | "hyper", 1614 | "indexmap", 1615 | "log", 1616 | "memchr", 1617 | "pear", 1618 | "percent-encoding", 1619 | "pin-project-lite", 1620 | "ref-cast", 1621 | "serde", 1622 | "smallvec", 1623 | "stable-pattern", 1624 | "state", 1625 | "time", 1626 | "tokio", 1627 | "uncased", 1628 | ] 1629 | 1630 | [[package]] 1631 | name = "rocket_sync_db_pools" 1632 | version = "0.1.0" 1633 | source = "registry+https://github.com/rust-lang/crates.io-index" 1634 | checksum = "d83f32721ed79509adac4328e97f817a8f55a47c4b64799f6fd6cc3adb6e42ff" 1635 | dependencies = [ 1636 | "diesel", 1637 | "r2d2", 1638 | "rocket", 1639 | "rocket_sync_db_pools_codegen", 1640 | "serde", 1641 | "tokio", 1642 | "version_check", 1643 | ] 1644 | 1645 | [[package]] 1646 | name = "rocket_sync_db_pools_codegen" 1647 | version = "0.1.0" 1648 | source = "registry+https://github.com/rust-lang/crates.io-index" 1649 | checksum = "5cc890925dc79370c28eb15c9957677093fdb7e8c44966d189f38cedb995ee68" 1650 | dependencies = [ 1651 | "devise", 1652 | "quote", 1653 | ] 1654 | 1655 | [[package]] 1656 | name = "rusqlite" 1657 | version = "0.35.0" 1658 | source = "registry+https://github.com/rust-lang/crates.io-index" 1659 | checksum = "a22715a5d6deef63c637207afbe68d0c72c3f8d0022d7cf9714c442d6157606b" 1660 | dependencies = [ 1661 | "bitflags 2.9.0", 1662 | "fallible-iterator", 1663 | "fallible-streaming-iterator", 1664 | "hashlink", 1665 | "libsqlite3-sys", 1666 | "smallvec", 1667 | ] 1668 | 1669 | [[package]] 1670 | name = "rustc-demangle" 1671 | version = "0.1.24" 1672 | source = "registry+https://github.com/rust-lang/crates.io-index" 1673 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 1674 | 1675 | [[package]] 1676 | name = "rustix" 1677 | version = "1.0.7" 1678 | source = "registry+https://github.com/rust-lang/crates.io-index" 1679 | checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" 1680 | dependencies = [ 1681 | "bitflags 2.9.0", 1682 | "errno", 1683 | "libc", 1684 | "linux-raw-sys", 1685 | "windows-sys 0.59.0", 1686 | ] 1687 | 1688 | [[package]] 1689 | name = "rustversion" 1690 | version = "1.0.20" 1691 | source = "registry+https://github.com/rust-lang/crates.io-index" 1692 | checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" 1693 | 1694 | [[package]] 1695 | name = "ryu" 1696 | version = "1.0.20" 1697 | source = "registry+https://github.com/rust-lang/crates.io-index" 1698 | checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" 1699 | 1700 | [[package]] 1701 | name = "same-file" 1702 | version = "1.0.6" 1703 | source = "registry+https://github.com/rust-lang/crates.io-index" 1704 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 1705 | dependencies = [ 1706 | "winapi-util", 1707 | ] 1708 | 1709 | [[package]] 1710 | name = "scheduled-thread-pool" 1711 | version = "0.2.7" 1712 | source = "registry+https://github.com/rust-lang/crates.io-index" 1713 | checksum = "3cbc66816425a074528352f5789333ecff06ca41b36b0b0efdfbb29edc391a19" 1714 | dependencies = [ 1715 | "parking_lot", 1716 | ] 1717 | 1718 | [[package]] 1719 | name = "scoped-tls" 1720 | version = "1.0.1" 1721 | source = "registry+https://github.com/rust-lang/crates.io-index" 1722 | checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" 1723 | 1724 | [[package]] 1725 | name = "scopeguard" 1726 | version = "1.2.0" 1727 | source = "registry+https://github.com/rust-lang/crates.io-index" 1728 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1729 | 1730 | [[package]] 1731 | name = "serde" 1732 | version = "1.0.219" 1733 | source = "registry+https://github.com/rust-lang/crates.io-index" 1734 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 1735 | dependencies = [ 1736 | "serde_derive", 1737 | ] 1738 | 1739 | [[package]] 1740 | name = "serde_derive" 1741 | version = "1.0.219" 1742 | source = "registry+https://github.com/rust-lang/crates.io-index" 1743 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 1744 | dependencies = [ 1745 | "proc-macro2", 1746 | "quote", 1747 | "syn", 1748 | ] 1749 | 1750 | [[package]] 1751 | name = "serde_json" 1752 | version = "1.0.140" 1753 | source = "registry+https://github.com/rust-lang/crates.io-index" 1754 | checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" 1755 | dependencies = [ 1756 | "itoa", 1757 | "memchr", 1758 | "ryu", 1759 | "serde", 1760 | ] 1761 | 1762 | [[package]] 1763 | name = "serde_spanned" 1764 | version = "0.6.8" 1765 | source = "registry+https://github.com/rust-lang/crates.io-index" 1766 | checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" 1767 | dependencies = [ 1768 | "serde", 1769 | ] 1770 | 1771 | [[package]] 1772 | name = "serde_yaml" 1773 | version = "0.9.34+deprecated" 1774 | source = "registry+https://github.com/rust-lang/crates.io-index" 1775 | checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" 1776 | dependencies = [ 1777 | "indexmap", 1778 | "itoa", 1779 | "ryu", 1780 | "serde", 1781 | "unsafe-libyaml", 1782 | ] 1783 | 1784 | [[package]] 1785 | name = "sha2" 1786 | version = "0.10.9" 1787 | source = "registry+https://github.com/rust-lang/crates.io-index" 1788 | checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" 1789 | dependencies = [ 1790 | "cfg-if", 1791 | "cpufeatures", 1792 | "digest", 1793 | ] 1794 | 1795 | [[package]] 1796 | name = "sharded-slab" 1797 | version = "0.1.7" 1798 | source = "registry+https://github.com/rust-lang/crates.io-index" 1799 | checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" 1800 | dependencies = [ 1801 | "lazy_static", 1802 | ] 1803 | 1804 | [[package]] 1805 | name = "shlex" 1806 | version = "1.3.0" 1807 | source = "registry+https://github.com/rust-lang/crates.io-index" 1808 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1809 | 1810 | [[package]] 1811 | name = "signal-hook-registry" 1812 | version = "1.4.5" 1813 | source = "registry+https://github.com/rust-lang/crates.io-index" 1814 | checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410" 1815 | dependencies = [ 1816 | "libc", 1817 | ] 1818 | 1819 | [[package]] 1820 | name = "siphasher" 1821 | version = "1.0.1" 1822 | source = "registry+https://github.com/rust-lang/crates.io-index" 1823 | checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" 1824 | 1825 | [[package]] 1826 | name = "slab" 1827 | version = "0.4.9" 1828 | source = "registry+https://github.com/rust-lang/crates.io-index" 1829 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1830 | dependencies = [ 1831 | "autocfg", 1832 | ] 1833 | 1834 | [[package]] 1835 | name = "slug" 1836 | version = "0.1.6" 1837 | source = "registry+https://github.com/rust-lang/crates.io-index" 1838 | checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724" 1839 | dependencies = [ 1840 | "deunicode", 1841 | "wasm-bindgen", 1842 | ] 1843 | 1844 | [[package]] 1845 | name = "smallvec" 1846 | version = "1.15.0" 1847 | source = "registry+https://github.com/rust-lang/crates.io-index" 1848 | checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" 1849 | 1850 | [[package]] 1851 | name = "socket2" 1852 | version = "0.5.9" 1853 | source = "registry+https://github.com/rust-lang/crates.io-index" 1854 | checksum = "4f5fd57c80058a56cf5c777ab8a126398ece8e442983605d280a44ce79d0edef" 1855 | dependencies = [ 1856 | "libc", 1857 | "windows-sys 0.52.0", 1858 | ] 1859 | 1860 | [[package]] 1861 | name = "spin" 1862 | version = "0.9.8" 1863 | source = "registry+https://github.com/rust-lang/crates.io-index" 1864 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1865 | 1866 | [[package]] 1867 | name = "stable-pattern" 1868 | version = "0.1.0" 1869 | source = "registry+https://github.com/rust-lang/crates.io-index" 1870 | checksum = "4564168c00635f88eaed410d5efa8131afa8d8699a612c80c455a0ba05c21045" 1871 | dependencies = [ 1872 | "memchr", 1873 | ] 1874 | 1875 | [[package]] 1876 | name = "state" 1877 | version = "0.6.0" 1878 | source = "registry+https://github.com/rust-lang/crates.io-index" 1879 | checksum = "2b8c4a4445d81357df8b1a650d0d0d6fbbbfe99d064aa5e02f3e4022061476d8" 1880 | dependencies = [ 1881 | "loom", 1882 | ] 1883 | 1884 | [[package]] 1885 | name = "strsim" 1886 | version = "0.11.1" 1887 | source = "registry+https://github.com/rust-lang/crates.io-index" 1888 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1889 | 1890 | [[package]] 1891 | name = "syn" 1892 | version = "2.0.101" 1893 | source = "registry+https://github.com/rust-lang/crates.io-index" 1894 | checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf" 1895 | dependencies = [ 1896 | "proc-macro2", 1897 | "quote", 1898 | "unicode-ident", 1899 | ] 1900 | 1901 | [[package]] 1902 | name = "tempfile" 1903 | version = "3.19.1" 1904 | source = "registry+https://github.com/rust-lang/crates.io-index" 1905 | checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf" 1906 | dependencies = [ 1907 | "fastrand", 1908 | "getrandom 0.3.3", 1909 | "once_cell", 1910 | "rustix", 1911 | "windows-sys 0.59.0", 1912 | ] 1913 | 1914 | [[package]] 1915 | name = "tera" 1916 | version = "1.20.0" 1917 | source = "registry+https://github.com/rust-lang/crates.io-index" 1918 | checksum = "ab9d851b45e865f178319da0abdbfe6acbc4328759ff18dafc3a41c16b4cd2ee" 1919 | dependencies = [ 1920 | "chrono", 1921 | "chrono-tz", 1922 | "globwalk", 1923 | "humansize", 1924 | "lazy_static", 1925 | "percent-encoding", 1926 | "pest", 1927 | "pest_derive", 1928 | "rand", 1929 | "regex", 1930 | "serde", 1931 | "serde_json", 1932 | "slug", 1933 | "unic-segment", 1934 | ] 1935 | 1936 | [[package]] 1937 | name = "thiserror" 1938 | version = "2.0.12" 1939 | source = "registry+https://github.com/rust-lang/crates.io-index" 1940 | checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" 1941 | dependencies = [ 1942 | "thiserror-impl", 1943 | ] 1944 | 1945 | [[package]] 1946 | name = "thiserror-impl" 1947 | version = "2.0.12" 1948 | source = "registry+https://github.com/rust-lang/crates.io-index" 1949 | checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" 1950 | dependencies = [ 1951 | "proc-macro2", 1952 | "quote", 1953 | "syn", 1954 | ] 1955 | 1956 | [[package]] 1957 | name = "thread_local" 1958 | version = "1.1.8" 1959 | source = "registry+https://github.com/rust-lang/crates.io-index" 1960 | checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" 1961 | dependencies = [ 1962 | "cfg-if", 1963 | "once_cell", 1964 | ] 1965 | 1966 | [[package]] 1967 | name = "time" 1968 | version = "0.3.41" 1969 | source = "registry+https://github.com/rust-lang/crates.io-index" 1970 | checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40" 1971 | dependencies = [ 1972 | "deranged", 1973 | "itoa", 1974 | "num-conv", 1975 | "powerfmt", 1976 | "serde", 1977 | "time-core", 1978 | "time-macros", 1979 | ] 1980 | 1981 | [[package]] 1982 | name = "time-core" 1983 | version = "0.1.4" 1984 | source = "registry+https://github.com/rust-lang/crates.io-index" 1985 | checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c" 1986 | 1987 | [[package]] 1988 | name = "time-macros" 1989 | version = "0.2.22" 1990 | source = "registry+https://github.com/rust-lang/crates.io-index" 1991 | checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49" 1992 | dependencies = [ 1993 | "num-conv", 1994 | "time-core", 1995 | ] 1996 | 1997 | [[package]] 1998 | name = "tokio" 1999 | version = "1.45.0" 2000 | source = "registry+https://github.com/rust-lang/crates.io-index" 2001 | checksum = "2513ca694ef9ede0fb23fe71a4ee4107cb102b9dc1930f6d0fd77aae068ae165" 2002 | dependencies = [ 2003 | "backtrace", 2004 | "bytes", 2005 | "libc", 2006 | "mio 1.0.3", 2007 | "pin-project-lite", 2008 | "signal-hook-registry", 2009 | "socket2", 2010 | "tokio-macros", 2011 | "windows-sys 0.52.0", 2012 | ] 2013 | 2014 | [[package]] 2015 | name = "tokio-macros" 2016 | version = "2.5.0" 2017 | source = "registry+https://github.com/rust-lang/crates.io-index" 2018 | checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" 2019 | dependencies = [ 2020 | "proc-macro2", 2021 | "quote", 2022 | "syn", 2023 | ] 2024 | 2025 | [[package]] 2026 | name = "tokio-stream" 2027 | version = "0.1.17" 2028 | source = "registry+https://github.com/rust-lang/crates.io-index" 2029 | checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" 2030 | dependencies = [ 2031 | "futures-core", 2032 | "pin-project-lite", 2033 | "tokio", 2034 | ] 2035 | 2036 | [[package]] 2037 | name = "tokio-util" 2038 | version = "0.7.15" 2039 | source = "registry+https://github.com/rust-lang/crates.io-index" 2040 | checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" 2041 | dependencies = [ 2042 | "bytes", 2043 | "futures-core", 2044 | "futures-sink", 2045 | "pin-project-lite", 2046 | "tokio", 2047 | ] 2048 | 2049 | [[package]] 2050 | name = "toml" 2051 | version = "0.8.22" 2052 | source = "registry+https://github.com/rust-lang/crates.io-index" 2053 | checksum = "05ae329d1f08c4d17a59bed7ff5b5a769d062e64a62d34a3261b219e62cd5aae" 2054 | dependencies = [ 2055 | "serde", 2056 | "serde_spanned", 2057 | "toml_datetime", 2058 | "toml_edit", 2059 | ] 2060 | 2061 | [[package]] 2062 | name = "toml_datetime" 2063 | version = "0.6.9" 2064 | source = "registry+https://github.com/rust-lang/crates.io-index" 2065 | checksum = "3da5db5a963e24bc68be8b17b6fa82814bb22ee8660f192bb182771d498f09a3" 2066 | dependencies = [ 2067 | "serde", 2068 | ] 2069 | 2070 | [[package]] 2071 | name = "toml_edit" 2072 | version = "0.22.26" 2073 | source = "registry+https://github.com/rust-lang/crates.io-index" 2074 | checksum = "310068873db2c5b3e7659d2cc35d21855dbafa50d1ce336397c666e3cb08137e" 2075 | dependencies = [ 2076 | "indexmap", 2077 | "serde", 2078 | "serde_spanned", 2079 | "toml_datetime", 2080 | "toml_write", 2081 | "winnow", 2082 | ] 2083 | 2084 | [[package]] 2085 | name = "toml_write" 2086 | version = "0.1.1" 2087 | source = "registry+https://github.com/rust-lang/crates.io-index" 2088 | checksum = "bfb942dfe1d8e29a7ee7fcbde5bd2b9a25fb89aa70caea2eba3bee836ff41076" 2089 | 2090 | [[package]] 2091 | name = "tower-service" 2092 | version = "0.3.3" 2093 | source = "registry+https://github.com/rust-lang/crates.io-index" 2094 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 2095 | 2096 | [[package]] 2097 | name = "tracing" 2098 | version = "0.1.41" 2099 | source = "registry+https://github.com/rust-lang/crates.io-index" 2100 | checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 2101 | dependencies = [ 2102 | "pin-project-lite", 2103 | "tracing-attributes", 2104 | "tracing-core", 2105 | ] 2106 | 2107 | [[package]] 2108 | name = "tracing-attributes" 2109 | version = "0.1.28" 2110 | source = "registry+https://github.com/rust-lang/crates.io-index" 2111 | checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" 2112 | dependencies = [ 2113 | "proc-macro2", 2114 | "quote", 2115 | "syn", 2116 | ] 2117 | 2118 | [[package]] 2119 | name = "tracing-core" 2120 | version = "0.1.33" 2121 | source = "registry+https://github.com/rust-lang/crates.io-index" 2122 | checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" 2123 | dependencies = [ 2124 | "once_cell", 2125 | "valuable", 2126 | ] 2127 | 2128 | [[package]] 2129 | name = "tracing-log" 2130 | version = "0.2.0" 2131 | source = "registry+https://github.com/rust-lang/crates.io-index" 2132 | checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" 2133 | dependencies = [ 2134 | "log", 2135 | "once_cell", 2136 | "tracing-core", 2137 | ] 2138 | 2139 | [[package]] 2140 | name = "tracing-subscriber" 2141 | version = "0.3.19" 2142 | source = "registry+https://github.com/rust-lang/crates.io-index" 2143 | checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" 2144 | dependencies = [ 2145 | "matchers", 2146 | "nu-ansi-term", 2147 | "once_cell", 2148 | "regex", 2149 | "sharded-slab", 2150 | "smallvec", 2151 | "thread_local", 2152 | "tracing", 2153 | "tracing-core", 2154 | "tracing-log", 2155 | ] 2156 | 2157 | [[package]] 2158 | name = "traefik-gui" 2159 | version = "0.1.2" 2160 | dependencies = [ 2161 | "diesel", 2162 | "diesel_migrations", 2163 | "itertools", 2164 | "rocket", 2165 | "rocket_dyn_templates", 2166 | "rocket_sync_db_pools", 2167 | "rusqlite", 2168 | "serde", 2169 | "serde_yaml", 2170 | "thiserror", 2171 | ] 2172 | 2173 | [[package]] 2174 | name = "try-lock" 2175 | version = "0.2.5" 2176 | source = "registry+https://github.com/rust-lang/crates.io-index" 2177 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 2178 | 2179 | [[package]] 2180 | name = "typenum" 2181 | version = "1.18.0" 2182 | source = "registry+https://github.com/rust-lang/crates.io-index" 2183 | checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" 2184 | 2185 | [[package]] 2186 | name = "ubyte" 2187 | version = "0.10.4" 2188 | source = "registry+https://github.com/rust-lang/crates.io-index" 2189 | checksum = "f720def6ce1ee2fc44d40ac9ed6d3a59c361c80a75a7aa8e75bb9baed31cf2ea" 2190 | dependencies = [ 2191 | "serde", 2192 | ] 2193 | 2194 | [[package]] 2195 | name = "ucd-trie" 2196 | version = "0.1.7" 2197 | source = "registry+https://github.com/rust-lang/crates.io-index" 2198 | checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" 2199 | 2200 | [[package]] 2201 | name = "uncased" 2202 | version = "0.9.10" 2203 | source = "registry+https://github.com/rust-lang/crates.io-index" 2204 | checksum = "e1b88fcfe09e89d3866a5c11019378088af2d24c3fbd4f0543f96b479ec90697" 2205 | dependencies = [ 2206 | "serde", 2207 | "version_check", 2208 | ] 2209 | 2210 | [[package]] 2211 | name = "unic-char-property" 2212 | version = "0.9.0" 2213 | source = "registry+https://github.com/rust-lang/crates.io-index" 2214 | checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" 2215 | dependencies = [ 2216 | "unic-char-range", 2217 | ] 2218 | 2219 | [[package]] 2220 | name = "unic-char-range" 2221 | version = "0.9.0" 2222 | source = "registry+https://github.com/rust-lang/crates.io-index" 2223 | checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" 2224 | 2225 | [[package]] 2226 | name = "unic-common" 2227 | version = "0.9.0" 2228 | source = "registry+https://github.com/rust-lang/crates.io-index" 2229 | checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" 2230 | 2231 | [[package]] 2232 | name = "unic-segment" 2233 | version = "0.9.0" 2234 | source = "registry+https://github.com/rust-lang/crates.io-index" 2235 | checksum = "e4ed5d26be57f84f176157270c112ef57b86debac9cd21daaabbe56db0f88f23" 2236 | dependencies = [ 2237 | "unic-ucd-segment", 2238 | ] 2239 | 2240 | [[package]] 2241 | name = "unic-ucd-segment" 2242 | version = "0.9.0" 2243 | source = "registry+https://github.com/rust-lang/crates.io-index" 2244 | checksum = "2079c122a62205b421f499da10f3ee0f7697f012f55b675e002483c73ea34700" 2245 | dependencies = [ 2246 | "unic-char-property", 2247 | "unic-char-range", 2248 | "unic-ucd-version", 2249 | ] 2250 | 2251 | [[package]] 2252 | name = "unic-ucd-version" 2253 | version = "0.9.0" 2254 | source = "registry+https://github.com/rust-lang/crates.io-index" 2255 | checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" 2256 | dependencies = [ 2257 | "unic-common", 2258 | ] 2259 | 2260 | [[package]] 2261 | name = "unicode-ident" 2262 | version = "1.0.18" 2263 | source = "registry+https://github.com/rust-lang/crates.io-index" 2264 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" 2265 | 2266 | [[package]] 2267 | name = "unicode-xid" 2268 | version = "0.2.6" 2269 | source = "registry+https://github.com/rust-lang/crates.io-index" 2270 | checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" 2271 | 2272 | [[package]] 2273 | name = "unsafe-libyaml" 2274 | version = "0.2.11" 2275 | source = "registry+https://github.com/rust-lang/crates.io-index" 2276 | checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" 2277 | 2278 | [[package]] 2279 | name = "valuable" 2280 | version = "0.1.1" 2281 | source = "registry+https://github.com/rust-lang/crates.io-index" 2282 | checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" 2283 | 2284 | [[package]] 2285 | name = "vcpkg" 2286 | version = "0.2.15" 2287 | source = "registry+https://github.com/rust-lang/crates.io-index" 2288 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 2289 | 2290 | [[package]] 2291 | name = "version_check" 2292 | version = "0.9.5" 2293 | source = "registry+https://github.com/rust-lang/crates.io-index" 2294 | checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" 2295 | 2296 | [[package]] 2297 | name = "walkdir" 2298 | version = "2.5.0" 2299 | source = "registry+https://github.com/rust-lang/crates.io-index" 2300 | checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 2301 | dependencies = [ 2302 | "same-file", 2303 | "winapi-util", 2304 | ] 2305 | 2306 | [[package]] 2307 | name = "want" 2308 | version = "0.3.1" 2309 | source = "registry+https://github.com/rust-lang/crates.io-index" 2310 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 2311 | dependencies = [ 2312 | "try-lock", 2313 | ] 2314 | 2315 | [[package]] 2316 | name = "wasi" 2317 | version = "0.11.0+wasi-snapshot-preview1" 2318 | source = "registry+https://github.com/rust-lang/crates.io-index" 2319 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 2320 | 2321 | [[package]] 2322 | name = "wasi" 2323 | version = "0.14.2+wasi-0.2.4" 2324 | source = "registry+https://github.com/rust-lang/crates.io-index" 2325 | checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" 2326 | dependencies = [ 2327 | "wit-bindgen-rt", 2328 | ] 2329 | 2330 | [[package]] 2331 | name = "wasm-bindgen" 2332 | version = "0.2.100" 2333 | source = "registry+https://github.com/rust-lang/crates.io-index" 2334 | checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" 2335 | dependencies = [ 2336 | "cfg-if", 2337 | "once_cell", 2338 | "rustversion", 2339 | "wasm-bindgen-macro", 2340 | ] 2341 | 2342 | [[package]] 2343 | name = "wasm-bindgen-backend" 2344 | version = "0.2.100" 2345 | source = "registry+https://github.com/rust-lang/crates.io-index" 2346 | checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" 2347 | dependencies = [ 2348 | "bumpalo", 2349 | "log", 2350 | "proc-macro2", 2351 | "quote", 2352 | "syn", 2353 | "wasm-bindgen-shared", 2354 | ] 2355 | 2356 | [[package]] 2357 | name = "wasm-bindgen-macro" 2358 | version = "0.2.100" 2359 | source = "registry+https://github.com/rust-lang/crates.io-index" 2360 | checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" 2361 | dependencies = [ 2362 | "quote", 2363 | "wasm-bindgen-macro-support", 2364 | ] 2365 | 2366 | [[package]] 2367 | name = "wasm-bindgen-macro-support" 2368 | version = "0.2.100" 2369 | source = "registry+https://github.com/rust-lang/crates.io-index" 2370 | checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" 2371 | dependencies = [ 2372 | "proc-macro2", 2373 | "quote", 2374 | "syn", 2375 | "wasm-bindgen-backend", 2376 | "wasm-bindgen-shared", 2377 | ] 2378 | 2379 | [[package]] 2380 | name = "wasm-bindgen-shared" 2381 | version = "0.2.100" 2382 | source = "registry+https://github.com/rust-lang/crates.io-index" 2383 | checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" 2384 | dependencies = [ 2385 | "unicode-ident", 2386 | ] 2387 | 2388 | [[package]] 2389 | name = "winapi" 2390 | version = "0.3.9" 2391 | source = "registry+https://github.com/rust-lang/crates.io-index" 2392 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 2393 | dependencies = [ 2394 | "winapi-i686-pc-windows-gnu", 2395 | "winapi-x86_64-pc-windows-gnu", 2396 | ] 2397 | 2398 | [[package]] 2399 | name = "winapi-i686-pc-windows-gnu" 2400 | version = "0.4.0" 2401 | source = "registry+https://github.com/rust-lang/crates.io-index" 2402 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 2403 | 2404 | [[package]] 2405 | name = "winapi-util" 2406 | version = "0.1.9" 2407 | source = "registry+https://github.com/rust-lang/crates.io-index" 2408 | checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" 2409 | dependencies = [ 2410 | "windows-sys 0.59.0", 2411 | ] 2412 | 2413 | [[package]] 2414 | name = "winapi-x86_64-pc-windows-gnu" 2415 | version = "0.4.0" 2416 | source = "registry+https://github.com/rust-lang/crates.io-index" 2417 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 2418 | 2419 | [[package]] 2420 | name = "windows" 2421 | version = "0.48.0" 2422 | source = "registry+https://github.com/rust-lang/crates.io-index" 2423 | checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" 2424 | dependencies = [ 2425 | "windows-targets 0.48.5", 2426 | ] 2427 | 2428 | [[package]] 2429 | name = "windows-core" 2430 | version = "0.61.0" 2431 | source = "registry+https://github.com/rust-lang/crates.io-index" 2432 | checksum = "4763c1de310c86d75a878046489e2e5ba02c649d185f21c67d4cf8a56d098980" 2433 | dependencies = [ 2434 | "windows-implement", 2435 | "windows-interface", 2436 | "windows-link", 2437 | "windows-result", 2438 | "windows-strings", 2439 | ] 2440 | 2441 | [[package]] 2442 | name = "windows-implement" 2443 | version = "0.60.0" 2444 | source = "registry+https://github.com/rust-lang/crates.io-index" 2445 | checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" 2446 | dependencies = [ 2447 | "proc-macro2", 2448 | "quote", 2449 | "syn", 2450 | ] 2451 | 2452 | [[package]] 2453 | name = "windows-interface" 2454 | version = "0.59.1" 2455 | source = "registry+https://github.com/rust-lang/crates.io-index" 2456 | checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" 2457 | dependencies = [ 2458 | "proc-macro2", 2459 | "quote", 2460 | "syn", 2461 | ] 2462 | 2463 | [[package]] 2464 | name = "windows-link" 2465 | version = "0.1.1" 2466 | source = "registry+https://github.com/rust-lang/crates.io-index" 2467 | checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" 2468 | 2469 | [[package]] 2470 | name = "windows-result" 2471 | version = "0.3.2" 2472 | source = "registry+https://github.com/rust-lang/crates.io-index" 2473 | checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" 2474 | dependencies = [ 2475 | "windows-link", 2476 | ] 2477 | 2478 | [[package]] 2479 | name = "windows-strings" 2480 | version = "0.4.0" 2481 | source = "registry+https://github.com/rust-lang/crates.io-index" 2482 | checksum = "7a2ba9642430ee452d5a7aa78d72907ebe8cfda358e8cb7918a2050581322f97" 2483 | dependencies = [ 2484 | "windows-link", 2485 | ] 2486 | 2487 | [[package]] 2488 | name = "windows-sys" 2489 | version = "0.48.0" 2490 | source = "registry+https://github.com/rust-lang/crates.io-index" 2491 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 2492 | dependencies = [ 2493 | "windows-targets 0.48.5", 2494 | ] 2495 | 2496 | [[package]] 2497 | name = "windows-sys" 2498 | version = "0.52.0" 2499 | source = "registry+https://github.com/rust-lang/crates.io-index" 2500 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2501 | dependencies = [ 2502 | "windows-targets 0.52.6", 2503 | ] 2504 | 2505 | [[package]] 2506 | name = "windows-sys" 2507 | version = "0.59.0" 2508 | source = "registry+https://github.com/rust-lang/crates.io-index" 2509 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 2510 | dependencies = [ 2511 | "windows-targets 0.52.6", 2512 | ] 2513 | 2514 | [[package]] 2515 | name = "windows-targets" 2516 | version = "0.48.5" 2517 | source = "registry+https://github.com/rust-lang/crates.io-index" 2518 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 2519 | dependencies = [ 2520 | "windows_aarch64_gnullvm 0.48.5", 2521 | "windows_aarch64_msvc 0.48.5", 2522 | "windows_i686_gnu 0.48.5", 2523 | "windows_i686_msvc 0.48.5", 2524 | "windows_x86_64_gnu 0.48.5", 2525 | "windows_x86_64_gnullvm 0.48.5", 2526 | "windows_x86_64_msvc 0.48.5", 2527 | ] 2528 | 2529 | [[package]] 2530 | name = "windows-targets" 2531 | version = "0.52.6" 2532 | source = "registry+https://github.com/rust-lang/crates.io-index" 2533 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 2534 | dependencies = [ 2535 | "windows_aarch64_gnullvm 0.52.6", 2536 | "windows_aarch64_msvc 0.52.6", 2537 | "windows_i686_gnu 0.52.6", 2538 | "windows_i686_gnullvm", 2539 | "windows_i686_msvc 0.52.6", 2540 | "windows_x86_64_gnu 0.52.6", 2541 | "windows_x86_64_gnullvm 0.52.6", 2542 | "windows_x86_64_msvc 0.52.6", 2543 | ] 2544 | 2545 | [[package]] 2546 | name = "windows_aarch64_gnullvm" 2547 | version = "0.48.5" 2548 | source = "registry+https://github.com/rust-lang/crates.io-index" 2549 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 2550 | 2551 | [[package]] 2552 | name = "windows_aarch64_gnullvm" 2553 | version = "0.52.6" 2554 | source = "registry+https://github.com/rust-lang/crates.io-index" 2555 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 2556 | 2557 | [[package]] 2558 | name = "windows_aarch64_msvc" 2559 | version = "0.48.5" 2560 | source = "registry+https://github.com/rust-lang/crates.io-index" 2561 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 2562 | 2563 | [[package]] 2564 | name = "windows_aarch64_msvc" 2565 | version = "0.52.6" 2566 | source = "registry+https://github.com/rust-lang/crates.io-index" 2567 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 2568 | 2569 | [[package]] 2570 | name = "windows_i686_gnu" 2571 | version = "0.48.5" 2572 | source = "registry+https://github.com/rust-lang/crates.io-index" 2573 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 2574 | 2575 | [[package]] 2576 | name = "windows_i686_gnu" 2577 | version = "0.52.6" 2578 | source = "registry+https://github.com/rust-lang/crates.io-index" 2579 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 2580 | 2581 | [[package]] 2582 | name = "windows_i686_gnullvm" 2583 | version = "0.52.6" 2584 | source = "registry+https://github.com/rust-lang/crates.io-index" 2585 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 2586 | 2587 | [[package]] 2588 | name = "windows_i686_msvc" 2589 | version = "0.48.5" 2590 | source = "registry+https://github.com/rust-lang/crates.io-index" 2591 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 2592 | 2593 | [[package]] 2594 | name = "windows_i686_msvc" 2595 | version = "0.52.6" 2596 | source = "registry+https://github.com/rust-lang/crates.io-index" 2597 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 2598 | 2599 | [[package]] 2600 | name = "windows_x86_64_gnu" 2601 | version = "0.48.5" 2602 | source = "registry+https://github.com/rust-lang/crates.io-index" 2603 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 2604 | 2605 | [[package]] 2606 | name = "windows_x86_64_gnu" 2607 | version = "0.52.6" 2608 | source = "registry+https://github.com/rust-lang/crates.io-index" 2609 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 2610 | 2611 | [[package]] 2612 | name = "windows_x86_64_gnullvm" 2613 | version = "0.48.5" 2614 | source = "registry+https://github.com/rust-lang/crates.io-index" 2615 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 2616 | 2617 | [[package]] 2618 | name = "windows_x86_64_gnullvm" 2619 | version = "0.52.6" 2620 | source = "registry+https://github.com/rust-lang/crates.io-index" 2621 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 2622 | 2623 | [[package]] 2624 | name = "windows_x86_64_msvc" 2625 | version = "0.48.5" 2626 | source = "registry+https://github.com/rust-lang/crates.io-index" 2627 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 2628 | 2629 | [[package]] 2630 | name = "windows_x86_64_msvc" 2631 | version = "0.52.6" 2632 | source = "registry+https://github.com/rust-lang/crates.io-index" 2633 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 2634 | 2635 | [[package]] 2636 | name = "winnow" 2637 | version = "0.7.10" 2638 | source = "registry+https://github.com/rust-lang/crates.io-index" 2639 | checksum = "c06928c8748d81b05c9be96aad92e1b6ff01833332f281e8cfca3be4b35fc9ec" 2640 | dependencies = [ 2641 | "memchr", 2642 | ] 2643 | 2644 | [[package]] 2645 | name = "wit-bindgen-rt" 2646 | version = "0.39.0" 2647 | source = "registry+https://github.com/rust-lang/crates.io-index" 2648 | checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" 2649 | dependencies = [ 2650 | "bitflags 2.9.0", 2651 | ] 2652 | 2653 | [[package]] 2654 | name = "yansi" 2655 | version = "1.0.1" 2656 | source = "registry+https://github.com/rust-lang/crates.io-index" 2657 | checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" 2658 | dependencies = [ 2659 | "is-terminal", 2660 | ] 2661 | 2662 | [[package]] 2663 | name = "zerocopy" 2664 | version = "0.8.25" 2665 | source = "registry+https://github.com/rust-lang/crates.io-index" 2666 | checksum = "a1702d9583232ddb9174e01bb7c15a2ab8fb1bc6f227aa1233858c351a3ba0cb" 2667 | dependencies = [ 2668 | "zerocopy-derive", 2669 | ] 2670 | 2671 | [[package]] 2672 | name = "zerocopy-derive" 2673 | version = "0.8.25" 2674 | source = "registry+https://github.com/rust-lang/crates.io-index" 2675 | checksum = "28a6e20d751156648aa063f3800b706ee209a32c0b4d9f24be3d980b01be55ef" 2676 | dependencies = [ 2677 | "proc-macro2", 2678 | "quote", 2679 | "syn", 2680 | ] 2681 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "traefik-gui" 3 | version = "0.1.2" 4 | edition = "2021" 5 | 6 | [dependencies] 7 | diesel = { version = "2.2.10", features = ["sqlite", "r2d2"] } 8 | diesel_migrations = { version = "2.2.0", features = ["sqlite"] } 9 | rocket = "0.5.1" 10 | rocket_dyn_templates = { version = "0.2.0", features = ["tera"] } 11 | rocket_sync_db_pools = { version = "0.1.0", features = ["diesel_sqlite_pool"] } 12 | serde = { version = "1.0.219", features = ["derive"] } 13 | serde_yaml = "0.9.34" 14 | rusqlite = { version = "0.35", features = ["bundled"] } 15 | thiserror = "2.0.12" 16 | itertools = "0.14.0" 17 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM rust AS builder 2 | WORKDIR /app 3 | COPY *.toml . 4 | COPY Cargo.lock . 5 | COPY ./src ./src 6 | COPY ./templates ./templates 7 | COPY ./migrations ./migrations 8 | RUN cargo build --release 9 | 10 | FROM debian:stable-slim AS runner 11 | RUN mkdir -p /app/db 12 | RUN mkdir -p /app/traefik 13 | WORKDIR /app 14 | COPY --from=builder /app/target/release/traefik-gui /app/traefik-gui 15 | COPY ./templates /app/templates 16 | COPY ./Rocket.toml /app 17 | ENV ROCKET_ADDRESS=0.0.0.0 18 | ENV ROCKET_PORT=8000 19 | EXPOSE 8000 20 | VOLUME /app/db 21 | VOLUME /app/traefik 22 | CMD ["/app/traefik-gui"] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published by 637 | the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Traefik GUI (V2) 2 | 3 | > [!IMPORTANT] 4 | > 5 | > V2 is a complete rewrite and incompatible with V1 6 | > 7 | > I've actually gotten some stars, so some people might be using this in the wild. 8 | > I added a migration guide below so you know what changed and what you need to do to upgrade 9 | 10 | I really like traefik, but with multiple VMs I need to bind come configs into the container so I can relay those connections. 11 | 12 | This project is a Web-GUI for the Traefik reverse proxy. It allows you to easily add routes to your dynamic Traefik configuration. 13 | It is meant for simple http and tcp routes, without having to manage the Traefik configuration manually. 14 | This is especially useful if you only have terminal access. 15 | 16 | I provided an installation guide a bit further below. If you need any help or are missing something, just open an issue 17 | 18 | ## V2 and Migration 19 | 20 | V2 is a rewrite which adds a few new features, and generally improves the experience (hopefully) 21 | 22 | Improvements over V1: 23 | - one-click HTTPS redirect for TLS routes 24 | - allow editing routes (finally) 25 | - quickly disable and re-enable routes without deleting them 26 | - Nice UI for adding a PathPrefix 27 | 28 | ### Migration 29 | 30 | To migrate you will need to do the following: 31 | - write down your old routes (a screenshot should do too) 32 | - delete the old config volume or bind mount for `/app/data` 33 | - create a new volume or mount for `/app/db` 34 | - delete the old generated traefik config file. If it's the only file in the volume, you can just recreate the volume 35 | - replace the image with the new one: `ghcr.io/rahn-it/traefik-gui:master` 36 | - replace the container port. The UI is using port `8000` instead of `3000` now. You may also just replace the internal port and leave the external mapping at `3000`. 37 | - open the new UI and re-add your routes. 38 | 39 | ## Screenshots 40 | 41 | ![Screenshot](screenshots/home.png) 42 | ![Screenshot](screenshots/http.png) 43 | ![Screenshot](screenshots/edit.png) 44 | ![Screenshot](screenshots/tls.png) 45 | 46 | ## Features 47 | 48 | Currently, Traefik-gui has the following features: 49 | 50 | Forward HTTP-Request: 51 | - By Hostname 52 | - By Host regex 53 | - By additional Path Prefix 54 | 55 | Forward HTTPS-Requests: 56 | - By Hostname 57 | - By Host regex 58 | - By additional Path Prefix 59 | - Set a certificate provider in settings 60 | - Automatically add HTTP -> HTTPS redirect 61 | - Automatically add HTTP rule for the `/.well-known/acme-challenge/` endpoints 62 | 63 | Forward TLS Requests 64 | - By Hostname (SNI) 65 | - By Regex (SNI) 66 | - Automatically add HTTP -> HTTPS redirect 67 | - Automatically add HTTP rule for the `/.well-known/acme-challenge/` endpoints - when set to port 80 your downstream application can request Let's encrypt certificates via HTTP. 68 | 69 | The GUI currently doesn't validate the data you put in. It's just pastes the incorrect data in the config file. 70 | 71 | # Installation 72 | 73 | Traefik-GUI can be installed using docker: 74 | 75 | ```shell 76 | docker pull ghcr.io/rahn-it/traefik-gui:master 77 | docker run -d -p 8000:8000 --name traefik-gui -v ./db:/app/db -v ./traefik-configs:/app/traefik ghcr.io/rahn-it/traefik-gui:master 78 | ``` 79 | 80 | I would recommend using docker-compose though. 81 | 82 | As a starting point you can use the [docker compose file](docker-compose.yaml) frm this repository. 83 | Don't forget to enter your email. The example will spin up the traefik dashboard on port 8080 84 | 85 | ## Usage 86 | 87 | You can access the GUI at port 8000. e.g.: http://localhost:8000 88 | 89 | The tool will automatically generate the Traefik configuration and put it in the `/app/traefik` folder inside the container. 90 | The configuration is saved using sqlite inside the `/app/db` folder. 91 | 92 | When using the docker compose example, this folder will already be connected to the traefik container. 93 | 94 | If you have any questions or problems, you're welcome to create an issue :) 95 | 96 | # Attribution 97 | 98 | This project is licensed under the [AGPL-3.0](LICENSE). 99 | 100 | Developed by [Rahn IT](https://it-rahn.de/). 101 | 102 | Thanks to the great people of [Traefik](https://traefik.io/), [Rocket](https://rocket.rs/) and everyone who made this possible. 103 | -------------------------------------------------------------------------------- /Rocket.toml: -------------------------------------------------------------------------------- 1 | [default] 2 | template_dir = "templates" 3 | 4 | [default.databases.sqlite_database] 5 | url = "db/db.sqlite" 6 | -------------------------------------------------------------------------------- /db/.empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rahn-IT/traefik-gui/4a07222b90160c2a9736f9f3fcda2dbb1a222593/db/.empty -------------------------------------------------------------------------------- /diesel.toml: -------------------------------------------------------------------------------- 1 | # For documentation on how to configure this file, 2 | # see https://diesel.rs/guides/configuring-diesel-cli 3 | 4 | [print_schema] 5 | file = "src/schema.rs" 6 | custom_type_derives = ["diesel::query_builder::QueryId", "Clone"] 7 | 8 | [migrations_directory] 9 | dir = "migrations" 10 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | volumes: 2 | certs: 3 | gui-data: 4 | config: 5 | 6 | services: 7 | gui: 8 | build: . 9 | image: ghcr.io/rahn-it/traefik-gui:master 10 | restart: unless-stopped 11 | ports: 12 | - 8000:8000 13 | environment: 14 | RUST_BACKTRACE: 1 15 | volumes: 16 | - gui-data:/app/db 17 | - config:/app/traefik 18 | # - ./traefik:/app/traefik 19 | 20 | 21 | traefik: 22 | image: traefik:latest 23 | restart: unless-stopped 24 | command: 25 | - "--providers.docker.exposedbydefault=false" 26 | - "--providers.docker.network=traefik" 27 | - "--providers.file.directory=/config" 28 | - "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}" 29 | - "--certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json" 30 | - "--certificatesresolvers.letsencrypt.acme.tlschallenge=true" 31 | - "--api.dashboard=true" 32 | - "--api.insecure=true" 33 | - "--entryPoints.web.address=:80" 34 | - "--entryPoints.web.allowACMEByPass=true" 35 | - "--entryPoints.websecure.address=:443" 36 | - "--entryPoints.websecure.allowACMEByPass=true" 37 | ports: 38 | - 443:443 39 | - 80:80 40 | - 8080:8080 41 | volumes: 42 | - certs:/etc/traefik/acme 43 | # So that Traefik can listen to the Docker events 44 | - /var/run/docker.sock:/var/run/docker.sock:ro 45 | # Additional configurations created by the ui 46 | - config:/config:ro 47 | # - ./traefik:/config:ro 48 | -------------------------------------------------------------------------------- /migrations/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rahn-IT/traefik-gui/4a07222b90160c2a9736f9f3fcda2dbb1a222593/migrations/.keep -------------------------------------------------------------------------------- /migrations/2024-12-20-110752_create_tables/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE IF EXISTS `http_routes`; 3 | DROP TABLE IF EXISTS `tls_routes`; 4 | -------------------------------------------------------------------------------- /migrations/2024-12-20-110752_create_tables/up.sql: -------------------------------------------------------------------------------- 1 | -- Your SQL goes here 2 | CREATE TABLE `http_routes`( 3 | `id` INTEGER PRIMARY KEY, 4 | `enabled` BOOL NOT NULL, 5 | `name` TEXT NOT NULL, 6 | `priority` INTEGER, 7 | `target` TEXT NOT NULL, 8 | `host_regex` BOOL NOT NULL, 9 | `host` TEXT NOT NULL, 10 | `prefix` TEXT 11 | ); 12 | 13 | CREATE TABLE `tls_routes`( 14 | `id` INTEGER PRIMARY KEY, 15 | `enabled` BOOL NOT NULL, 16 | `name` TEXT NOT NULL, 17 | `priority` INTEGER, 18 | `target` TEXT NOT NULL, 19 | `host_regex` BOOL NOT NULL, 20 | `host` TEXT NOT NULL, 21 | `acme_http_passthrough` INTEGER, 22 | `https_redirect` BOOL NOT NULL 23 | ); 24 | 25 | -------------------------------------------------------------------------------- /migrations/2025-02-24-102626_https/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | 3 | 4 | DROP TABLE IF EXISTS `https_routes`; 5 | -------------------------------------------------------------------------------- /migrations/2025-02-24-102626_https/up.sql: -------------------------------------------------------------------------------- 1 | -- Your SQL goes here 2 | 3 | 4 | CREATE TABLE `https_routes`( 5 | `id` INTEGER PRIMARY KEY, 6 | `enabled` BOOL NOT NULL, 7 | `name` TEXT NOT NULL, 8 | `priority` INTEGER, 9 | `target` TEXT NOT NULL, 10 | `host_regex` BOOL NOT NULL, 11 | `host` TEXT NOT NULL, 12 | `prefix` TEXT, 13 | `https_redirect` BOOL NOT NULL, 14 | `allow_http_acme` BOOL NOT NULL 15 | ); 16 | 17 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ] 5 | } -------------------------------------------------------------------------------- /screenshots/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rahn-IT/traefik-gui/4a07222b90160c2a9736f9f3fcda2dbb1a222593/screenshots/edit.png -------------------------------------------------------------------------------- /screenshots/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rahn-IT/traefik-gui/4a07222b90160c2a9736f9f3fcda2dbb1a222593/screenshots/home.png -------------------------------------------------------------------------------- /screenshots/http.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rahn-IT/traefik-gui/4a07222b90160c2a9736f9f3fcda2dbb1a222593/screenshots/http.png -------------------------------------------------------------------------------- /screenshots/tls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rahn-IT/traefik-gui/4a07222b90160c2a9736f9f3fcda2dbb1a222593/screenshots/tls.png -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Mutex; 2 | 3 | use rocket::{ 4 | form::Form, 5 | request::FlashMessage, 6 | response::{Flash, Redirect}, 7 | State, 8 | }; 9 | use rocket_dyn_templates::Template; 10 | use serde::{Deserialize, Serialize}; 11 | use thiserror::Error; 12 | 13 | pub struct ConfigState { 14 | config: Mutex, 15 | } 16 | 17 | #[derive(Debug, Error)] 18 | pub enum ConfigError { 19 | #[error("error opening config file: {0}")] 20 | Load(#[from] std::io::Error), 21 | #[error("error parsing config file: {0}")] 22 | Json(#[from] serde_yaml::Error), 23 | #[error("error saving config file: {0}")] 24 | Save(std::io::Error), 25 | } 26 | 27 | impl ConfigState { 28 | pub fn load() -> Result { 29 | // check if file exists, if not, create it 30 | if !std::path::Path::new("./db/config.yaml").exists() { 31 | let default_config = Config::default(); 32 | std::fs::write("./db/config.yaml", serde_yaml::to_string(&default_config)?) 33 | .map_err(ConfigError::Save)?; 34 | } 35 | 36 | let serialized = std::fs::read_to_string("./db/config.yaml")?; 37 | 38 | let config: Config = serde_yaml::from_str(&serialized)?; 39 | 40 | Ok(Self { 41 | config: Mutex::new(config), 42 | }) 43 | } 44 | 45 | pub fn save(&self, config: Config) -> Result<(), ConfigError> { 46 | let serialized = serde_yaml::to_string(&config)?; 47 | 48 | std::fs::write("./db/config.yaml", serialized).map_err(ConfigError::Save)?; 49 | 50 | let mut current = self.config.lock().unwrap(); 51 | *current = config; 52 | 53 | Ok(()) 54 | } 55 | 56 | pub fn config(&self) -> Config { 57 | self.config.lock().unwrap().clone() 58 | } 59 | } 60 | 61 | #[derive(Debug, Serialize, Deserialize, Clone, FromForm)] 62 | pub struct Config { 63 | pub acme_provider_name: String, 64 | } 65 | 66 | impl Default for Config { 67 | fn default() -> Self { 68 | Self { 69 | acme_provider_name: "".into(), 70 | } 71 | } 72 | } 73 | 74 | #[derive(Debug, Serialize, Deserialize, Clone)] 75 | pub struct ConfigRender { 76 | pub config: Config, 77 | pub flash: Option<(String, String)>, 78 | } 79 | 80 | #[get("/config")] 81 | pub async fn index(state: &State, flash: Option>) -> Template { 82 | let config = state.config(); 83 | let flash = flash.map(FlashMessage::into_inner); 84 | 85 | Template::render("config", ConfigRender { config, flash }) 86 | } 87 | 88 | #[post("/config", data = "")] 89 | pub async fn update(state: &State, config: Form) -> Flash { 90 | let config = config.into_inner(); 91 | 92 | state.save(config).unwrap(); 93 | 94 | Flash::success(Redirect::to("/config"), "Config updated") 95 | } 96 | -------------------------------------------------------------------------------- /src/http.rs: -------------------------------------------------------------------------------- 1 | use diesel::{ExpressionMethods, QueryDsl, QueryResult, RunQueryDsl}; 2 | use itertools::Itertools; 3 | use rocket::{ 4 | form::Form, 5 | request::FlashMessage, 6 | response::{Flash, Redirect}, 7 | State, 8 | }; 9 | use rocket_dyn_templates::Template; 10 | use serde::Serialize; 11 | 12 | use crate::{ 13 | config::ConfigState, 14 | export_traefik_config, 15 | https::HttpsRoute, 16 | schema::http_routes::{self, dsl}, 17 | traefik::{HttpConfig, HttpLoadBalancer, HttpRouter, HttpServer, HttpService}, 18 | DbConn, 19 | }; 20 | 21 | #[derive(Serialize, Queryable, Insertable, AsChangeset, FromForm, Clone, Debug)] 22 | #[serde(crate = "rocket::serde")] 23 | #[diesel(table_name = http_routes)] 24 | pub struct HttpRoute { 25 | #[serde(skip_deserializing)] 26 | pub id: Option, 27 | pub enabled: bool, 28 | pub name: String, 29 | pub priority: Option, 30 | pub target: String, 31 | pub host_regex: bool, 32 | pub host: String, 33 | pub prefix: Option, 34 | } 35 | 36 | impl HttpRoute { 37 | pub async fn count(conn: &DbConn) -> QueryResult { 38 | conn.run(|c| http_routes::table.count().first::(c)) 39 | .await 40 | } 41 | 42 | pub async fn all(conn: &DbConn) -> QueryResult> { 43 | conn.run(|c| http_routes::table.load::(c)).await 44 | } 45 | 46 | pub async fn get(id: i32, conn: &DbConn) -> QueryResult { 47 | conn.run(move |c| http_routes::table.filter(dsl::id.eq(id)).first(c)) 48 | .await 49 | } 50 | 51 | pub async fn insert(mut route: HttpRoute, conn: &DbConn) -> QueryResult { 52 | route.cleanup(); 53 | conn.run(move |c| { 54 | diesel::insert_into(http_routes::table) 55 | .values(&route) 56 | .execute(c) 57 | }) 58 | .await 59 | } 60 | 61 | pub async fn update(id: i32, mut route: HttpRoute, conn: &DbConn) -> QueryResult { 62 | route.cleanup(); 63 | conn.run(move |c| { 64 | diesel::update(http_routes::table) 65 | .filter(http_routes::id.eq(id)) 66 | .set(&route) 67 | .execute(c) 68 | }) 69 | .await 70 | } 71 | 72 | pub async fn delete(id: i32, conn: &DbConn) -> QueryResult { 73 | conn.run(move |c| { 74 | diesel::delete(http_routes::table) 75 | .filter(http_routes::id.eq(id)) 76 | .execute(c) 77 | }) 78 | .await 79 | } 80 | 81 | pub async fn enable(id: i32, enabled: bool, conn: &DbConn) -> QueryResult { 82 | conn.run(move |c| { 83 | diesel::update(http_routes::table) 84 | .filter(http_routes::id.eq(id)) 85 | .set(http_routes::enabled.eq(enabled)) 86 | .execute(c) 87 | }) 88 | .await 89 | } 90 | 91 | pub fn cleanup(&mut self) { 92 | if let Some(prefix) = &self.prefix { 93 | if prefix.trim().is_empty() { 94 | self.prefix = None; 95 | } 96 | } 97 | } 98 | 99 | pub async fn generate_traefik_config(conn: &DbConn) -> HttpConfig { 100 | let mut config = HttpConfig::new(); 101 | 102 | let routes = HttpRoute::all(conn).await.unwrap(); 103 | 104 | for mut route in routes { 105 | if route.enabled { 106 | route.cleanup(); 107 | let router_name = format!("gui-http-{}-{}", route.id.unwrap(), route.name); 108 | 109 | let mut host_rule = if route.host_regex { 110 | format!("HostRegexp(`{}`)", route.host.trim()) 111 | } else { 112 | let hosts = route 113 | .host 114 | .split(',') 115 | .map(str::trim) 116 | .map(|host| format!("Host(`{}`)", host)) 117 | .join(" && "); 118 | 119 | format!("( {} )", hosts) 120 | }; 121 | 122 | if let Some(prefix) = route.prefix { 123 | host_rule = format!("({} && PathPrefix(`{}`))", host_rule, prefix); 124 | } 125 | 126 | config.routers.insert( 127 | router_name.clone(), 128 | HttpRouter { 129 | priority: route.priority, 130 | service: router_name.clone(), 131 | rule: host_rule, 132 | middlewares: Vec::new(), 133 | tls: None, 134 | }, 135 | ); 136 | 137 | config.services.insert( 138 | router_name, 139 | HttpService { 140 | load_balancer: HttpLoadBalancer { 141 | servers: vec![{ HttpServer { url: route.target } }], 142 | }, 143 | }, 144 | ); 145 | } 146 | } 147 | 148 | config 149 | } 150 | } 151 | 152 | #[derive(Serialize)] 153 | struct Http { 154 | flash: Option<(String, String)>, 155 | routes: Vec, 156 | edit: Option, 157 | } 158 | 159 | impl Http { 160 | pub async fn raw(conn: &DbConn, flash: Option<(String, String)>, edit: Option) -> Self { 161 | match HttpRoute::all(conn).await { 162 | Ok(routes) => Self { 163 | flash, 164 | routes, 165 | edit, 166 | }, 167 | Err(e) => { 168 | error!("DB error loading HTTP routes: {}", e); 169 | Self { 170 | flash: Some(("error".into(), e.to_string())), 171 | routes: Vec::new(), 172 | edit: None, 173 | } 174 | } 175 | } 176 | } 177 | } 178 | 179 | #[get("/http?")] 180 | pub async fn index(edit: Option, flash: Option>, conn: DbConn) -> Template { 181 | let flash = flash.map(FlashMessage::into_inner); 182 | Template::render("http", Http::raw(&conn, flash, edit).await) 183 | } 184 | 185 | #[post("/http", data = "")] 186 | pub async fn create( 187 | route_form: Form, 188 | conn: DbConn, 189 | config: &State, 190 | ) -> Flash { 191 | let route = route_form.into_inner(); 192 | 193 | // TODO: validate 194 | 195 | if let Err(e) = HttpRoute::insert(route, &conn).await { 196 | Flash::error(Redirect::to("/http"), e.to_string()) 197 | } else { 198 | export_traefik_config(&conn, &config.config()).await; 199 | Flash::success(Redirect::to("/http"), "Route created") 200 | } 201 | } 202 | 203 | #[post("/http/", data = "")] 204 | pub async fn update( 205 | id: i32, 206 | route_form: Form, 207 | conn: DbConn, 208 | config: &State, 209 | ) -> Flash { 210 | // TODO: validate 211 | 212 | let route = route_form.into_inner(); 213 | if let Err(e) = HttpRoute::update(id, route, &conn).await { 214 | Flash::error(Redirect::to("/http"), e.to_string()) 215 | } else { 216 | export_traefik_config(&conn, &config.config()).await; 217 | Flash::success(Redirect::to("/http"), "Route updated") 218 | } 219 | } 220 | 221 | #[post("/http//enable", data = "")] 222 | pub async fn enable( 223 | id: i32, 224 | enabled: Form, 225 | conn: DbConn, 226 | config: &State, 227 | ) -> Flash { 228 | let enabled = enabled.into_inner(); 229 | if let Err(e) = HttpRoute::enable(id, enabled, &conn).await { 230 | Flash::error(Redirect::to("/http"), e.to_string()) 231 | } else { 232 | export_traefik_config(&conn, &config.config()).await; 233 | Flash::success(Redirect::to("/http"), "Route updated") 234 | } 235 | } 236 | 237 | #[post("/http//delete", data = "")] 238 | pub async fn delete( 239 | id: i32, 240 | confirm: Form, 241 | conn: DbConn, 242 | config: &State, 243 | ) -> Flash { 244 | if confirm.into_inner() { 245 | if let Err(e) = HttpRoute::delete(id, &conn).await { 246 | Flash::error(Redirect::to("/http"), e.to_string()) 247 | } else { 248 | export_traefik_config(&conn, &config.config()).await; 249 | Flash::success(Redirect::to("/http"), "Route deleted") 250 | } 251 | } else { 252 | Flash::error(Redirect::to("/http"), "Delete cancelled") 253 | } 254 | } 255 | 256 | #[post("/http//to_https", data = "")] 257 | pub async fn to_https( 258 | id: i32, 259 | confirm: Form, 260 | conn: DbConn, 261 | config: &State, 262 | ) -> Flash { 263 | if confirm.into_inner() { 264 | match HttpRoute::get(id, &conn).await { 265 | Ok(route) => { 266 | let new_route = HttpsRoute { 267 | id: None, 268 | enabled: route.enabled, 269 | host: route.host, 270 | host_regex: route.host_regex, 271 | name: route.name, 272 | prefix: route.prefix, 273 | priority: route.priority, 274 | target: route.target, 275 | https_redirect: false, 276 | allow_http_acme: false, 277 | }; 278 | 279 | if let Err(e) = HttpsRoute::insert(new_route, &conn).await { 280 | return Flash::error(Redirect::to("/http"), e.to_string()); 281 | } 282 | 283 | if let Err(e) = HttpRoute::delete(id, &conn).await { 284 | return Flash::error(Redirect::to("/http"), e.to_string()); 285 | } 286 | 287 | export_traefik_config(&conn, &config.config()).await; 288 | Flash::success(Redirect::to("/https"), "Route converted") 289 | } 290 | Err(err) => Flash::error(Redirect::to("/http"), err.to_string()), 291 | } 292 | } else { 293 | Flash::error(Redirect::to("/http"), "Convertion cancelled") 294 | } 295 | } 296 | -------------------------------------------------------------------------------- /src/https.rs: -------------------------------------------------------------------------------- 1 | use diesel::{ExpressionMethods, QueryDsl, QueryResult, RunQueryDsl}; 2 | use itertools::Itertools; 3 | use rocket::{ 4 | form::Form, 5 | request::FlashMessage, 6 | response::{Flash, Redirect}, 7 | State, 8 | }; 9 | use rocket_dyn_templates::Template; 10 | use serde::Serialize; 11 | 12 | use crate::{ 13 | config::{Config, ConfigState}, 14 | export_traefik_config, 15 | http::HttpRoute, 16 | schema::https_routes::{self, dsl}, 17 | traefik::{HttpConfig, HttpLoadBalancer, HttpRouter, HttpServer, HttpService, HttpTls}, 18 | DbConn, ACME_PATH, 19 | }; 20 | 21 | #[derive(Serialize, Queryable, Insertable, AsChangeset, FromForm, Clone, Debug)] 22 | #[serde(crate = "rocket::serde")] 23 | #[diesel(table_name = https_routes)] 24 | pub struct HttpsRoute { 25 | #[serde(skip_deserializing)] 26 | pub id: Option, 27 | pub enabled: bool, 28 | pub name: String, 29 | pub priority: Option, 30 | pub target: String, 31 | pub host_regex: bool, 32 | pub host: String, 33 | pub prefix: Option, 34 | pub https_redirect: bool, 35 | pub allow_http_acme: bool, 36 | } 37 | 38 | impl HttpsRoute { 39 | pub async fn count(conn: &DbConn) -> QueryResult { 40 | conn.run(|c| https_routes::table.count().first::(c)) 41 | .await 42 | } 43 | 44 | pub async fn all(conn: &DbConn) -> QueryResult> { 45 | conn.run(|c| https_routes::table.load::(c)) 46 | .await 47 | } 48 | 49 | pub async fn get(id: i32, conn: &DbConn) -> QueryResult { 50 | conn.run(move |c| https_routes::table.filter(dsl::id.eq(id)).first(c)) 51 | .await 52 | } 53 | 54 | pub async fn insert(mut route: HttpsRoute, conn: &DbConn) -> QueryResult { 55 | route.cleanup(); 56 | conn.run(move |c| { 57 | diesel::insert_into(https_routes::table) 58 | .values(&route) 59 | .execute(c) 60 | }) 61 | .await 62 | } 63 | 64 | pub async fn update(id: i32, mut route: HttpsRoute, conn: &DbConn) -> QueryResult { 65 | route.cleanup(); 66 | conn.run(move |c| { 67 | diesel::update(https_routes::table) 68 | .filter(https_routes::id.eq(id)) 69 | .set(&route) 70 | .execute(c) 71 | }) 72 | .await 73 | } 74 | 75 | pub async fn delete(id: i32, conn: &DbConn) -> QueryResult { 76 | conn.run(move |c| { 77 | diesel::delete(https_routes::table) 78 | .filter(https_routes::id.eq(id)) 79 | .execute(c) 80 | }) 81 | .await 82 | } 83 | 84 | pub async fn enable(id: i32, enabled: bool, conn: &DbConn) -> QueryResult { 85 | conn.run(move |c| { 86 | diesel::update(https_routes::table) 87 | .filter(https_routes::id.eq(id)) 88 | .set(https_routes::enabled.eq(enabled)) 89 | .execute(c) 90 | }) 91 | .await 92 | } 93 | 94 | pub fn cleanup(&mut self) { 95 | if let Some(prefix) = &self.prefix { 96 | if prefix.trim().is_empty() { 97 | self.prefix = None; 98 | } 99 | } 100 | } 101 | 102 | pub async fn generate_traefik_config(conn: &DbConn, config: &Config) -> HttpConfig { 103 | let mut traefik_config = HttpConfig::new(); 104 | 105 | let routes = HttpsRoute::all(conn).await.unwrap(); 106 | 107 | let acme_provider = if config.acme_provider_name.is_empty() { 108 | None 109 | } else { 110 | Some(config.acme_provider_name.clone()) 111 | }; 112 | 113 | for mut route in routes { 114 | if route.enabled { 115 | route.cleanup(); 116 | let router_name = format!("gui-https-{}-{}", route.id.unwrap(), route.name); 117 | 118 | let base_rule = if route.host_regex { 119 | format!("HostRegexp(`{}`)", route.host.trim()) 120 | } else { 121 | let hosts = route 122 | .host 123 | .split(',') 124 | .map(str::trim) 125 | .map(|host| format!("Host(`{}`)", host)) 126 | .join(" && "); 127 | 128 | format!("( {} )", hosts) 129 | }; 130 | 131 | let host_rule = if let Some(prefix) = route.prefix { 132 | format!("({} && PathPrefix(`{}`))", base_rule, prefix) 133 | } else { 134 | base_rule.clone() 135 | }; 136 | 137 | if route.https_redirect { 138 | let redirect_router_name = format!("{}-redirect", router_name); 139 | 140 | traefik_config.routers.insert( 141 | redirect_router_name, 142 | HttpRouter { 143 | rule: host_rule.clone(), 144 | service: "noop@internal".into(), 145 | priority: route.priority, 146 | middlewares: vec!["https-redirect".into()], 147 | tls: None, 148 | }, 149 | ); 150 | } 151 | 152 | if route.allow_http_acme { 153 | let acme_router_name = format!("{}-acme", router_name); 154 | let acme_rule = format!("({} && PathPrefix(`{}`))", base_rule, ACME_PATH); 155 | 156 | traefik_config.routers.insert( 157 | acme_router_name, 158 | HttpRouter { 159 | rule: acme_rule, 160 | service: router_name.clone(), 161 | priority: route.priority, 162 | middlewares: Vec::new(), 163 | tls: None, 164 | }, 165 | ); 166 | } 167 | 168 | traefik_config.routers.insert( 169 | router_name.clone(), 170 | HttpRouter { 171 | priority: route.priority, 172 | service: router_name.clone(), 173 | rule: host_rule, 174 | middlewares: Vec::new(), 175 | tls: Some(HttpTls { 176 | cert_resolver: acme_provider.clone(), 177 | }), 178 | }, 179 | ); 180 | 181 | traefik_config.services.insert( 182 | router_name, 183 | HttpService { 184 | load_balancer: HttpLoadBalancer { 185 | servers: vec![{ HttpServer { url: route.target } }], 186 | }, 187 | }, 188 | ); 189 | } 190 | } 191 | 192 | traefik_config 193 | } 194 | } 195 | 196 | #[derive(Serialize)] 197 | struct Https { 198 | flash: Option<(String, String)>, 199 | routes: Vec, 200 | edit: Option, 201 | } 202 | 203 | impl Https { 204 | pub async fn raw(conn: &DbConn, flash: Option<(String, String)>, edit: Option) -> Self { 205 | match HttpsRoute::all(conn).await { 206 | Ok(routes) => Self { 207 | flash, 208 | routes, 209 | edit, 210 | }, 211 | Err(e) => { 212 | error!("DB error loading HTTP routes: {}", e); 213 | Self { 214 | flash: Some(("error".into(), e.to_string())), 215 | routes: Vec::new(), 216 | edit: None, 217 | } 218 | } 219 | } 220 | } 221 | } 222 | 223 | #[get("/https?")] 224 | pub async fn index(edit: Option, flash: Option>, conn: DbConn) -> Template { 225 | let flash = flash.map(FlashMessage::into_inner); 226 | Template::render("https", Https::raw(&conn, flash, edit).await) 227 | } 228 | 229 | #[post("/https", data = "")] 230 | pub async fn create( 231 | route_form: Form, 232 | conn: DbConn, 233 | config: &State, 234 | ) -> Flash { 235 | let route = route_form.into_inner(); 236 | 237 | // TODO: validate 238 | 239 | if let Err(e) = HttpsRoute::insert(route, &conn).await { 240 | Flash::error(Redirect::to("/https"), e.to_string()) 241 | } else { 242 | export_traefik_config(&conn, &config.config()).await; 243 | Flash::success(Redirect::to("/https"), "Route created") 244 | } 245 | } 246 | 247 | #[post("/https/", data = "")] 248 | pub async fn update( 249 | id: i32, 250 | route_form: Form, 251 | conn: DbConn, 252 | config: &State, 253 | ) -> Flash { 254 | // TODO: validate 255 | 256 | let route = route_form.into_inner(); 257 | if let Err(e) = HttpsRoute::update(id, route, &conn).await { 258 | Flash::error(Redirect::to("/https"), e.to_string()) 259 | } else { 260 | export_traefik_config(&conn, &config.config()).await; 261 | Flash::success(Redirect::to("/https"), "Route updated") 262 | } 263 | } 264 | 265 | #[post("/https//enable", data = "")] 266 | pub async fn enable( 267 | id: i32, 268 | enabled: Form, 269 | conn: DbConn, 270 | config: &State, 271 | ) -> Flash { 272 | let enabled = enabled.into_inner(); 273 | if let Err(e) = HttpsRoute::enable(id, enabled, &conn).await { 274 | Flash::error(Redirect::to("/https"), e.to_string()) 275 | } else { 276 | export_traefik_config(&conn, &config.config()).await; 277 | Flash::success(Redirect::to("/https"), "Route updated") 278 | } 279 | } 280 | 281 | #[post("/https//delete", data = "")] 282 | pub async fn delete( 283 | id: i32, 284 | confirm: Form, 285 | conn: DbConn, 286 | config: &State, 287 | ) -> Flash { 288 | if confirm.into_inner() { 289 | if let Err(e) = HttpsRoute::delete(id, &conn).await { 290 | Flash::error(Redirect::to("/https"), e.to_string()) 291 | } else { 292 | export_traefik_config(&conn, &config.config()).await; 293 | Flash::success(Redirect::to("/https"), "Route deleted") 294 | } 295 | } else { 296 | Flash::error(Redirect::to("/https"), "Delete cancelled") 297 | } 298 | } 299 | 300 | #[post("/https//to_http", data = "")] 301 | pub async fn to_http( 302 | id: i32, 303 | confirm: Form, 304 | conn: DbConn, 305 | config: &State, 306 | ) -> Flash { 307 | if confirm.into_inner() { 308 | match HttpsRoute::get(id, &conn).await { 309 | Ok(route) => { 310 | let new_route = HttpRoute { 311 | id: None, 312 | enabled: route.enabled, 313 | host: route.host, 314 | host_regex: route.host_regex, 315 | name: route.name, 316 | prefix: route.prefix, 317 | priority: route.priority, 318 | target: route.target, 319 | }; 320 | 321 | if let Err(e) = HttpRoute::insert(new_route, &conn).await { 322 | return Flash::error(Redirect::to("/https"), e.to_string()); 323 | } 324 | 325 | if let Err(e) = HttpsRoute::delete(id, &conn).await { 326 | return Flash::error(Redirect::to("/https"), e.to_string()); 327 | } 328 | 329 | export_traefik_config(&conn, &config.config()).await; 330 | Flash::success(Redirect::to("/http"), "Route converted") 331 | } 332 | Err(err) => Flash::error(Redirect::to("/https"), err.to_string()), 333 | } 334 | } else { 335 | Flash::error(Redirect::to("/https"), "Convertion cancelled") 336 | } 337 | } 338 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use config::{Config, ConfigState}; 2 | use rocket::{ 3 | fairing::AdHoc, 4 | fs::FileServer, 5 | request::FlashMessage, 6 | response::{Flash, Redirect}, 7 | serde::Serialize, 8 | Build, Rocket, State, 9 | }; 10 | use rocket_dyn_templates::Template; 11 | 12 | #[macro_use] 13 | extern crate rocket; 14 | #[macro_use] 15 | extern crate rocket_sync_db_pools; 16 | #[macro_use] 17 | extern crate diesel; 18 | 19 | pub mod config; 20 | mod http; 21 | mod https; 22 | mod schema; 23 | mod tls; 24 | mod traefik; 25 | 26 | const ACME_PATH: &str = "/.well-known/acme-challenge/"; 27 | 28 | #[database("sqlite_database")] 29 | pub struct DbConn(diesel::SqliteConnection); 30 | 31 | #[launch] 32 | async fn rocket() -> _ { 33 | rocket::build() 34 | .mount( 35 | "/", 36 | routes![ 37 | index, 38 | redeploy, 39 | http::index, 40 | http::create, 41 | http::update, 42 | http::enable, 43 | http::delete, 44 | http::to_https, 45 | https::index, 46 | https::create, 47 | https::update, 48 | https::enable, 49 | https::delete, 50 | https::to_http, 51 | tls::index, 52 | tls::create, 53 | tls::update, 54 | tls::enable, 55 | tls::delete, 56 | config::index, 57 | config::update 58 | ], 59 | ) 60 | .mount("/static", FileServer::from("templates/static")) 61 | .attach(Template::fairing()) 62 | .attach(DbConn::fairing()) 63 | .attach(AdHoc::on_ignite("Run Migrations", run_migrations)) 64 | .attach(AdHoc::on_ignite( 65 | "Export Traefik Config", 66 | initialize_traefik_config, 67 | )) 68 | .manage(config::ConfigState::load().unwrap()) 69 | } 70 | 71 | async fn run_migrations(rocket: Rocket) -> Rocket { 72 | use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness}; 73 | 74 | const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations"); 75 | 76 | DbConn::get_one(&rocket) 77 | .await 78 | .expect("database connection") 79 | .run(|conn| { 80 | conn.run_pending_migrations(MIGRATIONS) 81 | .expect("diesel migrations"); 82 | }) 83 | .await; 84 | 85 | rocket 86 | } 87 | 88 | #[derive(Serialize)] 89 | struct Index { 90 | flash: Option<(String, String)>, 91 | http_count: i64, 92 | https_count: i64, 93 | tls_count: i64, 94 | config: String, 95 | } 96 | 97 | #[get("/")] 98 | async fn index( 99 | conn: DbConn, 100 | flash: Option>, 101 | config: &State, 102 | ) -> Template { 103 | let http_count = http::HttpRoute::count(&conn).await.unwrap_or(0); 104 | let https_count = https::HttpsRoute::count(&conn).await.unwrap_or(0); 105 | let tls_count = tls::TlsRoute::count(&conn).await.unwrap_or(0); 106 | let config = generate_traefik_config(&conn, &config.config()).await; 107 | Template::render( 108 | "index", 109 | &Index { 110 | flash: flash.map(FlashMessage::into_inner), 111 | http_count, 112 | https_count, 113 | tls_count, 114 | config, 115 | }, 116 | ) 117 | } 118 | 119 | #[post("/redeploy")] 120 | async fn redeploy(conn: DbConn, config: &State) -> Flash { 121 | export_traefik_config(&conn, &config.config()).await; 122 | 123 | Flash::success(Redirect::to("/"), "Traefik config updated") 124 | } 125 | 126 | async fn generate_traefik_config(conn: &DbConn, config: &Config) -> String { 127 | let mut traefik_config = tls::TlsRoute::generate_traefik_config(conn).await; 128 | let http = http::HttpRoute::generate_traefik_config(conn).await; 129 | let https = https::HttpsRoute::generate_traefik_config(conn, config).await; 130 | 131 | traefik_config.http.merge(http); 132 | traefik_config.http.merge(https); 133 | 134 | traefik_config.http.add_default_middlewares(); 135 | 136 | let serialized = serde_yaml::to_string(&traefik_config).unwrap(); 137 | 138 | serialized 139 | } 140 | 141 | pub async fn export_traefik_config(conn: &DbConn, config: &Config) { 142 | let config = generate_traefik_config(conn, config).await; 143 | 144 | std::fs::write("./traefik/gui.yml", config).unwrap(); 145 | } 146 | 147 | async fn initialize_traefik_config(rocket: Rocket) -> Rocket { 148 | let conn = DbConn::get_one(&rocket).await.expect("database connection"); 149 | 150 | let config = ConfigState::load().unwrap(); 151 | 152 | export_traefik_config(&conn, &config.config()).await; 153 | 154 | rocket 155 | } 156 | -------------------------------------------------------------------------------- /src/schema.rs: -------------------------------------------------------------------------------- 1 | // @generated automatically by Diesel CLI. 2 | 3 | diesel::table! { 4 | http_routes (id) { 5 | id -> Nullable, 6 | enabled -> Bool, 7 | name -> Text, 8 | priority -> Nullable, 9 | target -> Text, 10 | host_regex -> Bool, 11 | host -> Text, 12 | prefix -> Nullable, 13 | } 14 | } 15 | 16 | diesel::table! { 17 | tls_routes (id) { 18 | id -> Nullable, 19 | enabled -> Bool, 20 | name -> Text, 21 | priority -> Nullable, 22 | target -> Text, 23 | host_regex -> Bool, 24 | host -> Text, 25 | acme_http_passthrough -> Nullable, 26 | https_redirect -> Bool, 27 | } 28 | } 29 | 30 | diesel::table! { 31 | https_routes (id) { 32 | id -> Nullable, 33 | enabled -> Bool, 34 | name -> Text, 35 | priority -> Nullable, 36 | target -> Text, 37 | host_regex -> Bool, 38 | host -> Text, 39 | prefix -> Nullable, 40 | https_redirect -> Bool, 41 | allow_http_acme -> Bool, 42 | } 43 | } 44 | 45 | diesel::allow_tables_to_appear_in_same_query!(http_routes, tls_routes,); 46 | -------------------------------------------------------------------------------- /src/tls.rs: -------------------------------------------------------------------------------- 1 | use diesel::{ExpressionMethods, QueryDsl, QueryResult, RunQueryDsl}; 2 | use rocket::{ 3 | form::Form, 4 | request::FlashMessage, 5 | response::{Flash, Redirect}, 6 | State, 7 | }; 8 | use rocket_dyn_templates::Template; 9 | use serde::Serialize; 10 | 11 | use crate::{ 12 | config::ConfigState, 13 | export_traefik_config, 14 | schema::tls_routes, 15 | traefik::{ 16 | HttpLoadBalancer, HttpRouter, HttpServer, HttpService, TcpLoadBalancer, TcpRouter, 17 | TcpServer, TcpService, TcpTls, TraefikConfig, 18 | }, 19 | DbConn, ACME_PATH, 20 | }; 21 | 22 | #[derive(Serialize, Queryable, Insertable, AsChangeset, FromForm, Clone, Debug)] 23 | #[serde(crate = "rocket::serde")] 24 | #[diesel(table_name = tls_routes)] 25 | pub struct TlsRoute { 26 | pub id: Option, 27 | pub enabled: bool, 28 | pub name: String, 29 | pub priority: Option, 30 | pub target: String, 31 | pub host_regex: bool, 32 | pub host: String, 33 | pub acme_http_passthrough: Option, 34 | pub https_redirect: bool, 35 | } 36 | 37 | impl TlsRoute { 38 | pub async fn count(conn: &DbConn) -> QueryResult { 39 | conn.run(|c| tls_routes::table.count().first::(c)) 40 | .await 41 | } 42 | 43 | pub async fn all(conn: &crate::DbConn) -> QueryResult> { 44 | conn.run(|c| tls_routes::table.load::(c)).await 45 | } 46 | 47 | pub async fn insert(route: TlsRoute, conn: &DbConn) -> QueryResult { 48 | conn.run(move |c| { 49 | diesel::insert_into(tls_routes::table) 50 | .values(&route) 51 | .execute(c) 52 | }) 53 | .await 54 | } 55 | 56 | pub async fn update(id: i32, route: TlsRoute, conn: &DbConn) -> QueryResult { 57 | conn.run(move |c| { 58 | diesel::update(tls_routes::table) 59 | .filter(tls_routes::id.eq(id)) 60 | .set(&route) 61 | .execute(c) 62 | }) 63 | .await 64 | } 65 | 66 | pub async fn delete(id: i32, conn: &DbConn) -> QueryResult { 67 | conn.run(move |c| { 68 | diesel::delete(tls_routes::table) 69 | .filter(tls_routes::id.eq(id)) 70 | .execute(c) 71 | }) 72 | .await 73 | } 74 | 75 | pub async fn enable(id: i32, enabled: bool, conn: &DbConn) -> QueryResult { 76 | conn.run(move |c| { 77 | diesel::update(tls_routes::table) 78 | .filter(tls_routes::id.eq(id)) 79 | .set(tls_routes::enabled.eq(enabled)) 80 | .execute(c) 81 | }) 82 | .await 83 | } 84 | 85 | pub async fn generate_traefik_config(conn: &DbConn) -> TraefikConfig { 86 | let routes = TlsRoute::all(conn).await.unwrap(); 87 | 88 | let mut config = TraefikConfig::new(); 89 | 90 | for route in routes { 91 | if route.enabled { 92 | let router_name = format!("gui-tls-{}-{}", route.id.unwrap(), route.name); 93 | let host_rule = if route.host_regex { 94 | format!("HostSNIRegexp(`{}`)", route.host) 95 | } else { 96 | format!("HostSNI(`{}`)", route.host) 97 | }; 98 | 99 | let http_host_rule = if route.host_regex { 100 | format!("HostRegexp(`{}`)", route.host) 101 | } else { 102 | format!("Host(`{}`)", route.host) 103 | }; 104 | 105 | config.tcp.routers.insert( 106 | router_name.clone(), 107 | TcpRouter { 108 | priority: route.priority, 109 | service: router_name.clone(), 110 | rule: host_rule, 111 | tls: Some(TcpTls { passthrough: true }), 112 | }, 113 | ); 114 | 115 | let mut target = route.target.clone(); 116 | if target.rfind(':') == None { 117 | target.push_str(":443"); 118 | } 119 | 120 | config.tcp.services.insert( 121 | router_name.clone(), 122 | TcpService { 123 | load_balancer: TcpLoadBalancer { 124 | servers: vec![TcpServer { 125 | address: format!("{}", target), 126 | }], 127 | }, 128 | }, 129 | ); 130 | 131 | if let Some(acme_port) = route.acme_http_passthrough { 132 | // find the last colon in the target and replace the port after it with the acme port 133 | let mut acme_target = route.target.clone(); 134 | if let Some(pos) = acme_target.rfind(':') { 135 | acme_target.replace_range(pos.., &format!(":{}", acme_port)); 136 | } else { 137 | acme_target.push_str(&format!(":{}", acme_port)); 138 | } 139 | 140 | let acme_router_name = 141 | format!("gui-tls-{}-{}-acme", route.id.unwrap(), route.name); 142 | 143 | let acme_rule = format!("({} && PathPrefix(`{}`))", http_host_rule, ACME_PATH); 144 | 145 | config.http.routers.insert( 146 | acme_router_name.clone(), 147 | HttpRouter { 148 | // make sure the acme router has a higher priority than the https redirect 149 | priority: route.priority.map(|p| p + 1), 150 | service: acme_router_name.clone(), 151 | rule: acme_rule, 152 | middlewares: Vec::new(), 153 | tls: None, 154 | }, 155 | ); 156 | 157 | config.http.services.insert( 158 | acme_router_name.clone(), 159 | HttpService { 160 | load_balancer: HttpLoadBalancer { 161 | servers: vec![HttpServer { 162 | url: format!("http://{}", acme_target), 163 | }], 164 | }, 165 | }, 166 | ); 167 | } 168 | 169 | if route.https_redirect { 170 | let redirect_router_name = format!("{}-redirect", router_name); 171 | 172 | config.http.routers.insert( 173 | redirect_router_name, 174 | HttpRouter { 175 | rule: http_host_rule, 176 | service: "noop@internal".into(), 177 | priority: route.priority, 178 | middlewares: vec!["https-redirect".into()], 179 | tls: None, 180 | }, 181 | ); 182 | } 183 | } 184 | } 185 | 186 | config 187 | } 188 | } 189 | 190 | #[derive(Serialize)] 191 | struct Tls { 192 | flash: Option<(String, String)>, 193 | routes: Vec, 194 | edit: Option, 195 | } 196 | 197 | impl Tls { 198 | pub async fn raw(conn: &DbConn, flash: Option<(String, String)>, edit: Option) -> Self { 199 | match TlsRoute::all(conn).await { 200 | Ok(routes) => Self { 201 | flash, 202 | routes, 203 | edit, 204 | }, 205 | Err(e) => { 206 | error!("DB error loading HTTP routes: {}", e); 207 | Self { 208 | flash: Some(("error".into(), e.to_string())), 209 | routes: Vec::new(), 210 | edit: None, 211 | } 212 | } 213 | } 214 | } 215 | } 216 | 217 | #[get("/tls?")] 218 | pub async fn index(edit: Option, flash: Option>, conn: DbConn) -> Template { 219 | let flash = flash.map(FlashMessage::into_inner); 220 | Template::render("tls", Tls::raw(&conn, flash, edit).await) 221 | } 222 | 223 | #[post("/tls", data = "")] 224 | pub async fn create( 225 | route_form: Form, 226 | conn: DbConn, 227 | config: &State, 228 | ) -> Flash { 229 | let route = route_form.into_inner(); 230 | if let Err(e) = TlsRoute::insert(route, &conn).await { 231 | error!("DB error creating TLS route: {}", e); 232 | Flash::error(Redirect::to("/tls"), e.to_string()) 233 | } else { 234 | export_traefik_config(&conn, &config.config()).await; 235 | Flash::success( 236 | Redirect::to("/tls"), 237 | "Route created successfully".to_string(), 238 | ) 239 | } 240 | } 241 | 242 | #[post("/tls/", data = "")] 243 | pub async fn update( 244 | id: i32, 245 | route_form: Form, 246 | conn: DbConn, 247 | config: &State, 248 | ) -> Flash { 249 | let route = route_form.into_inner(); 250 | if let Err(e) = TlsRoute::update(id, route, &conn).await { 251 | error!("DB error updating TLS route: {}", e); 252 | Flash::error(Redirect::to("/tls"), e.to_string()) 253 | } else { 254 | export_traefik_config(&conn, &config.config()).await; 255 | Flash::success( 256 | Redirect::to("/tls"), 257 | "Route updated successfully".to_string(), 258 | ) 259 | } 260 | } 261 | 262 | #[post("/tls//enable", data = "")] 263 | pub async fn enable( 264 | id: i32, 265 | enabled: Form, 266 | conn: DbConn, 267 | config: &State, 268 | ) -> Flash { 269 | if let Err(e) = TlsRoute::enable(id, enabled.into_inner(), &conn).await { 270 | error!("DB error updating TLS route: {}", e); 271 | Flash::error(Redirect::to("/tls"), e.to_string()) 272 | } else { 273 | export_traefik_config(&conn, &config.config()).await; 274 | Flash::success( 275 | Redirect::to("/tls"), 276 | "Route updated successfully".to_string(), 277 | ) 278 | } 279 | } 280 | 281 | #[post("/tls//delete")] 282 | pub async fn delete(id: i32, conn: DbConn, config: &State) -> Flash { 283 | if let Err(e) = TlsRoute::delete(id, &conn).await { 284 | error!("DB error deleting TLS route: {}", e); 285 | Flash::error(Redirect::to("/tls"), e.to_string()) 286 | } else { 287 | export_traefik_config(&conn, &config.config()).await; 288 | Flash::success( 289 | Redirect::to("/tls"), 290 | "Route deleted successfully".to_string(), 291 | ) 292 | } 293 | } 294 | -------------------------------------------------------------------------------- /src/traefik.rs: -------------------------------------------------------------------------------- 1 | use std::collections::BTreeMap; 2 | 3 | use serde::Serialize; 4 | 5 | #[derive(Serialize)] 6 | pub struct TraefikConfig { 7 | #[serde(skip_serializing_if = "HttpConfig::is_empty")] 8 | pub http: HttpConfig, 9 | #[serde(skip_serializing_if = "TcpConfig::is_empty")] 10 | pub tcp: TcpConfig, 11 | } 12 | 13 | impl TraefikConfig { 14 | pub fn new() -> Self { 15 | Self { 16 | http: HttpConfig::new(), 17 | tcp: TcpConfig::new(), 18 | } 19 | } 20 | } 21 | 22 | #[derive(Serialize)] 23 | pub struct HttpConfig { 24 | #[serde(skip_serializing_if = "BTreeMap::is_empty")] 25 | pub routers: BTreeMap, 26 | #[serde(skip_serializing_if = "BTreeMap::is_empty")] 27 | pub services: BTreeMap, 28 | #[serde(skip_serializing_if = "BTreeMap::is_empty")] 29 | pub middlewares: BTreeMap, 30 | } 31 | 32 | impl HttpConfig { 33 | pub fn new() -> Self { 34 | Self { 35 | routers: BTreeMap::new(), 36 | services: BTreeMap::new(), 37 | middlewares: BTreeMap::new(), 38 | } 39 | } 40 | 41 | pub fn merge(&mut self, other: HttpConfig) { 42 | self.routers.extend(other.routers); 43 | self.services.extend(other.services); 44 | self.middlewares.extend(other.middlewares); 45 | } 46 | 47 | pub fn add_default_middlewares(&mut self) { 48 | self.middlewares.insert( 49 | "https-redirect".into(), 50 | HttpMiddleware { 51 | redirect_scheme: Some(HttpRedirectScheme { 52 | scheme: HttpScheme::Https, 53 | }), 54 | }, 55 | ); 56 | } 57 | 58 | pub fn is_empty(&self) -> bool { 59 | self.routers.is_empty() && self.services.is_empty() && self.middlewares.is_empty() 60 | } 61 | } 62 | 63 | #[derive(Serialize)] 64 | pub struct HttpRouter { 65 | pub rule: String, 66 | pub service: String, 67 | #[serde(skip_serializing_if = "Option::is_none")] 68 | pub priority: Option, 69 | #[serde(skip_serializing_if = "Vec::is_empty")] 70 | pub middlewares: Vec, 71 | #[serde(skip_serializing_if = "Option::is_none")] 72 | pub tls: Option, 73 | } 74 | 75 | #[derive(Serialize)] 76 | pub struct HttpTls { 77 | #[serde(rename = "certResolver")] 78 | #[serde(skip_serializing_if = "Option::is_none")] 79 | pub cert_resolver: Option, 80 | } 81 | 82 | #[derive(Serialize)] 83 | pub struct HttpService { 84 | #[serde(rename = "loadBalancer")] 85 | pub load_balancer: HttpLoadBalancer, 86 | } 87 | 88 | #[derive(Serialize)] 89 | pub struct HttpLoadBalancer { 90 | pub servers: Vec, 91 | } 92 | 93 | #[derive(Serialize)] 94 | pub struct HttpServer { 95 | pub url: String, 96 | } 97 | 98 | #[derive(Serialize)] 99 | pub struct HttpMiddleware { 100 | #[serde(rename = "redirectScheme")] 101 | redirect_scheme: Option, 102 | } 103 | 104 | #[derive(Serialize)] 105 | pub struct HttpRedirectScheme { 106 | scheme: HttpScheme, 107 | } 108 | 109 | #[derive(Serialize)] 110 | pub enum HttpScheme { 111 | #[serde(rename = "http")] 112 | _Http, 113 | #[serde(rename = "https")] 114 | Https, 115 | } 116 | 117 | #[derive(Serialize)] 118 | pub struct TcpConfig { 119 | #[serde(skip_serializing_if = "BTreeMap::is_empty")] 120 | pub routers: BTreeMap, 121 | #[serde(skip_serializing_if = "BTreeMap::is_empty")] 122 | pub services: BTreeMap, 123 | } 124 | 125 | impl TcpConfig { 126 | pub fn new() -> Self { 127 | Self { 128 | routers: BTreeMap::new(), 129 | services: BTreeMap::new(), 130 | } 131 | } 132 | 133 | pub fn is_empty(&self) -> bool { 134 | self.routers.is_empty() && self.services.is_empty() 135 | } 136 | } 137 | 138 | #[derive(Serialize)] 139 | pub struct TcpRouter { 140 | pub rule: String, 141 | pub service: String, 142 | #[serde(skip_serializing_if = "Option::is_none")] 143 | pub priority: Option, 144 | pub tls: Option, 145 | } 146 | 147 | #[derive(Serialize)] 148 | pub struct TcpTls { 149 | pub passthrough: bool, 150 | } 151 | 152 | #[derive(Serialize)] 153 | pub struct TcpService { 154 | #[serde(rename = "loadBalancer")] 155 | pub load_balancer: TcpLoadBalancer, 156 | } 157 | 158 | #[derive(Serialize)] 159 | pub struct TcpLoadBalancer { 160 | pub servers: Vec, 161 | } 162 | 163 | #[derive(Serialize)] 164 | pub struct TcpServer { 165 | pub address: String, 166 | } 167 | -------------------------------------------------------------------------------- /templates/base.html.tera: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Traefik Gui 6 | 7 | 8 | 9 | 10 | {% include "nav" %} 11 | 12 | {% block content %}{% endblock content %} 13 | 14 | 15 | -------------------------------------------------------------------------------- /templates/config.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "base" %} 2 | 3 | {% block content %} 4 |

Config

5 | 6 | {% if flash %} 7 |
8 | {{ flash.1 }} 9 |
10 | {% endif %} 11 | 12 |
13 |
14 |
15 | 16 | If you have configured an ACME provider for traefik, enter the name of the provider here 17 |
18 |
19 | 20 |
21 | 22 | Cancel 23 | 24 |
25 |
26 | 27 | {% endblock content %} -------------------------------------------------------------------------------- /templates/http.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "base" %} 2 | 3 | {% block content %} 4 |

HTTP Routes

5 | 6 | {% if flash %} 7 |
8 | {{ flash.1 }} 9 |
10 | {% endif %} 11 | 12 |
13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 37 |
34 | 35 |
38 | 39 |
40 |
41 | 42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | {% for route in routes %} 58 | 59 | {% if route.id == edit %} 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 80 | 81 | 82 | {% else %} 83 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 121 | {% endif %} 122 | 123 | {% endfor %} 124 | 125 |
EnabledNamePriorityHostHost is regexPathTargetActions
69 |
70 |
71 | 72 | Cancel 73 |
74 |
75 | 76 | Save 77 |
78 |
79 |
84 | {% if route.enabled %}✅{% else %}❌{% endif %} 85 | {{ route.name }}{{ route.priority }}{{ route.host }}{% if route.host_regex %}✅{% else %}❌{% endif %}{{ route.prefix }}{{ route.target }} 93 |
94 |
95 | ✏️ 96 | Edit 97 |
98 |
99 | {% if route.enabled %} 100 | 101 | 102 | Disable 103 | {% else %} 104 | 105 | 106 | Enable 107 | {% endif %} 108 |
109 |
110 | 111 | 112 | Convert to HTTPS 113 |
114 |
115 | 116 | 117 | Delete 118 |
119 |
120 |
126 |
127 | {% endblock content %} -------------------------------------------------------------------------------- /templates/https.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "base" %} 2 | 3 | {% block content %} 4 |

HTTPS Routes

5 | 6 | {% if flash %} 7 |
8 | {{ flash.1 }} 9 |
10 | {% endif %} 11 | 12 |
13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 |
38 | 39 |
42 | 43 |
44 |
45 | 46 |
47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | {% for route in routes %} 63 | 64 | {% if route.id == edit %} 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 87 | 88 | 89 | {% else %} 90 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 130 | {% endif %} 131 | 132 | {% endfor %} 133 | 134 |
EnabledNamePriorityHostHost is regexPathTargetHTTPS RedirectActions
76 |
77 |
78 | 79 | Cancel 80 |
81 |
82 | 83 | Save 84 |
85 |
86 |
91 | {% if route.enabled %}✅{% else %}❌{% endif %} 92 | {{ route.name }}{{ route.priority }}{{ route.host }}{% if route.host_regex %}✅{% else %}❌{% endif %}{{ route.prefix }}{{ route.target }}{% if route.https_redirect %}✅{% else %}❌{% endif %}{% if route.allow_http_acme %}✅{% else %}❌{% endif %} 102 |
103 |
104 | ✏️ 105 | Edit 106 |
107 |
108 | {% if route.enabled %} 109 | 110 | 111 | Disable 112 | {% else %} 113 | 114 | 115 | Enable 116 | {% endif %} 117 |
118 |
119 | 120 | 121 | Convert to HTTP 122 |
123 |
124 | 125 | 126 | Delete 127 |
128 |
129 |
135 |
136 | {% endblock content %} 137 | -------------------------------------------------------------------------------- /templates/index.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "base" %} 2 | 3 | {% block content %} 4 |

Dashboard

5 | 6 | {% if flash %} 7 |
8 | {{ flash.1 }} 9 |
10 | {% endif %} 11 | 12 |
13 |

HTTP

14 |
15 | {{ http_count }} active HTTP route{% if http_count != 1 %}s{% endif %} 16 |
17 |
18 | Manage HTTP routes 19 |
20 |
21 | 22 |
23 |

HTTP

24 |
25 | {{ https_count }} active HTTPS route{% if https_count != 1 %}s{% endif %} 26 |
27 |
28 | Manage HTTP routes 29 |
30 |
31 | 32 |
33 |

TLS

34 |
35 | {{ tls_count }} active TLS route{% if tls_count != 1 %}s{% endif %} 36 |
37 |
38 | Manage TLS routes 39 |
40 |
41 | 42 |
43 |

Config File

44 |
45 | 46 |
47 |
48 |
{{ config }}
49 |
50 |
51 | 52 | {% endblock content %} -------------------------------------------------------------------------------- /templates/nav.html.tera: -------------------------------------------------------------------------------- 1 | 2 | 15 | -------------------------------------------------------------------------------- /templates/static/style.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | margin: 0; 4 | padding: 0; 5 | background: #444; 6 | color: #fff; 7 | } 8 | 9 | nav { 10 | display: flex; 11 | justify-content: space-between; 12 | align-items: center; 13 | padding: 1rem; 14 | background-color: #333; 15 | } 16 | 17 | nav ul { 18 | display: flex; 19 | list-style: none; 20 | margin: 0; 21 | padding: 0; 22 | } 23 | 24 | nav li { 25 | margin: 0 1rem; 26 | } 27 | 28 | nav a { 29 | color: #fff; 30 | text-decoration: none; 31 | } 32 | 33 | nav a:hover { 34 | text-decoration: underline; 35 | } 36 | 37 | h1 { 38 | font-size: 2rem; 39 | padding: 0 2rem; 40 | } 41 | 42 | table { 43 | border-collapse: collapse; 44 | width: 100%; 45 | } 46 | 47 | tr { 48 | border: 1px solid #777; 49 | } 50 | 51 | th, 52 | td { 53 | padding: 0.5rem; 54 | text-align: left; 55 | } 56 | 57 | a { 58 | text-decoration: none; 59 | } 60 | 61 | .link { 62 | text-decoration: underline; 63 | cursor: pointer; 64 | } 65 | 66 | 67 | .card { 68 | background-color: #333; 69 | padding: 1rem; 70 | margin: 1rem; 71 | border-radius: 0.5rem; 72 | box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1); 73 | } 74 | 75 | .field-success-msg { 76 | color: #0f0; 77 | background-color: #030; 78 | } 79 | 80 | .field-error-msg { 81 | color: #f55; 82 | background-color: #300; 83 | } 84 | 85 | /* show checkbox as toggle */ 86 | input[type=checkbox] { 87 | -webkit-appearance: none; 88 | -moz-appearance: none; 89 | appearance: none; 90 | -webkit-tap-highlight-color: transparent; 91 | cursor: pointer; 92 | } 93 | 94 | input[type=checkbox]:focus { 95 | outline: 0; 96 | } 97 | 98 | .toggle { 99 | height: 32px; 100 | width: 52px; 101 | border-radius: 16px; 102 | display: inline-block; 103 | position: relative; 104 | margin: 0; 105 | border: 2px solid #474755; 106 | background: #333; 107 | transition: all 0.2s ease; 108 | } 109 | 110 | .toggle:checked { 111 | background: #0a0; 112 | transition: all 0.2s ease; 113 | } 114 | 115 | .toggle:after { 116 | content: ""; 117 | position: absolute; 118 | top: 2px; 119 | left: 2px; 120 | width: 24px; 121 | height: 24px; 122 | border-radius: 50%; 123 | background: white; 124 | box-shadow: 0 1px 2px rgba(44, 44, 44, 0.2); 125 | transition: all 0.2s cubic-bezier(0.5, 0.1, 0.75, 1.35); 126 | } 127 | 128 | .toggle:checked { 129 | border-color: #654FEC; 130 | } 131 | 132 | .toggle:checked:after { 133 | transform: translatex(20px); 134 | } 135 | 136 | input[type=text], 137 | input[type=number] { 138 | padding: 0.5rem; 139 | border: 1px solid #ccc; 140 | border-radius: 0.5rem; 141 | background-color: inherit; 142 | color: #fff; 143 | box-shadow: inset 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5); 144 | font-size: 1rem; 145 | font-weight: 400; 146 | line-height: 1.5; 147 | transition: border 0.2s ease-in-out; 148 | } 149 | 150 | input[type=text]:focus, 151 | input[type=number]:focus { 152 | outline: none; 153 | border: 1px solid #654FEC; 154 | } 155 | 156 | .btn, 157 | input[type=submit].btn { 158 | margin: 0.5rem; 159 | padding: 0.5rem 1rem; 160 | border: none; 161 | border-radius: 0.5rem; 162 | background-color: #654FEC; 163 | color: #fff; 164 | font-size: 1rem; 165 | font-weight: 400; 166 | line-height: 1.5; 167 | cursor: pointer; 168 | transition: all 0.2s ease-in-out; 169 | display: inline-block; 170 | width: fit-content; 171 | } 172 | 173 | .btn:hover, 174 | input[type=submit].btn:hover { 175 | background-color: #6f5fe9; 176 | } 177 | 178 | input[type=submit], 179 | button { 180 | background: none; 181 | color: inherit; 182 | border: none; 183 | padding: 0; 184 | font: inherit; 185 | cursor: pointer; 186 | outline: inherit; 187 | } 188 | 189 | .actions { 190 | display: flex; 191 | justify-content: flex-end; 192 | align-items: center; 193 | } 194 | 195 | .actions>* { 196 | position: relative; 197 | } 198 | 199 | .actions .tooltip { 200 | position: absolute; 201 | visibility: hidden; 202 | background-color: #222; 203 | padding: 0.5rem; 204 | bottom: 120%; 205 | left: -50%; 206 | 207 | opacity: 0; 208 | transition: opacity 0.3s ease-in-out; 209 | } 210 | 211 | .actions *:hover>.tooltip { 212 | visibility: visible; 213 | opacity: 1; 214 | } 215 | 216 | .actions .tooltip::after { 217 | content: ""; 218 | position: absolute; 219 | top: 100%; 220 | left: 50%; 221 | margin-left: -5px; 222 | border-width: 5px; 223 | border-style: solid; 224 | border-color: #222 transparent transparent transparent; 225 | } 226 | 227 | .actions input[type=submit], 228 | .actions a { 229 | padding: 0.25rem; 230 | font-size: 1.25rem; 231 | text-decoration: none; 232 | } -------------------------------------------------------------------------------- /templates/tls.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "base" %} 2 | 3 | {% block content %} 4 |

TLS Routes

5 | 6 | {% if flash %} 7 |
8 | {{ flash.1 }} 9 |
10 | {% endif %} 11 | 12 |
13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 |
36 | 37 |
40 | 41 |
42 |
43 | 44 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | {% for route in routes %} 61 | 62 | {% if route.id == edit %} 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 84 | 85 | 86 | {% else %} 87 | 90 | 91 | 92 | 93 | 94 | 95 | 102 | 103 | 127 | {% endif %} 128 | 129 | {% endfor %} 130 | 131 |
EnabledNamePriorityHostHost is regexTargetACME HTTP Passthrough PortHTTPS RedirectActions
73 |
74 |
75 | 76 | Cancel 77 |
78 |
79 | 80 | Save 81 |
82 |
83 |
88 | {% if route.enabled %}✅{% else %}❌{% endif %} 89 | {{ route.name }}{{ route.priority }}{{ route.host }}{% if route.host_regex %}✅{% else %}❌{% endif %}{{ route.target }} 96 | {% if route.acme_http_passthrough %} 97 | {{ route.acme_http_passthrough }} 98 | {% else %} 99 | - 100 | {% endif %} 101 | {% if route.https_redirect %}✅{% else %}❌{% endif %} 104 |
105 |
106 | ✏️ 107 | Edit 108 |
109 |
110 | {% if route.enabled %} 111 | 112 | 113 | Disable 114 | {% else %} 115 | 116 | 117 | Enable 118 | {% endif %} 119 |
120 |
121 | 122 | 123 | Delete 124 |
125 |
126 |
132 |
133 | {% endblock content %} --------------------------------------------------------------------------------