Commit Graph

414 Commits

Author SHA1 Message Date
dependabot[bot] 12afa9e468
chore(deps): bump lazy-regex from 2.5.0 to 3.0.0 (#88)
Bumps [lazy-regex](https://github.com/Canop/lazy-regex) from 2.5.0 to 3.0.0.
- [Changelog](https://github.com/Canop/lazy-regex/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Canop/lazy-regex/commits)

---
updated-dependencies:
- dependency-name: lazy-regex
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 14:18:51 +02:00
dependabot[bot] c6863ab8bf
chore(deps): bump serde from 1.0.167 to 1.0.171 (#91)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.167 to 1.0.171.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.167...v1.0.171)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 14:13:16 +02:00
dependabot[bot] 43cbb56599
chore(deps): bump regex from 1.9.0 to 1.9.1 (#90)
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.0...1.9.1)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 14:12:14 +02:00
Helmut K. C. Tessarek a868a5fdde
chore(github): update the PR template about code blocks (#85) 2023-07-08 20:56:07 +02:00
dependabot[bot] 8a0445727d
chore(deps): bump serde from 1.0.166 to 1.0.167 (#86)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.166 to 1.0.167.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.167)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 22:11:30 +02:00
dependabot[bot] ced71c71f9
chore(deps): bump regex from 1.8.4 to 1.9.0 (#83)
Bumps [regex](https://github.com/rust-lang/regex) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.8.4...1.9.0)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-06 18:34:28 +02:00
dependabot[bot] 4071792555
chore(deps): bump infer from 0.14.0 to 0.15.0 (#82)
Bumps [infer](https://github.com/bojand/infer) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/bojand/infer/releases)
- [Commits](https://github.com/bojand/infer/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: infer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-06 00:09:19 +02:00
dependabot[bot] 49e8763257
chore(deps): bump serde from 1.0.165 to 1.0.166 (#81)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.165 to 1.0.166.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.165...v1.0.166)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-04 19:06:17 +02:00
dependabot[bot] e18372bb4b
chore(deps): bump serde from 1.0.164 to 1.0.165 (#80)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.164 to 1.0.165.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-03 19:58:26 +02:00
Orhun Parmaksız 39f9a62425
fix(shuttle): deploy when a new tag is created 2023-07-01 17:45:41 +03:00
Orhun Parmaksız a402776739
chore(release): prepare for v0.11.1 2023-07-01 17:31:39 +03:00
Orhun Parmaksız 936feaedd5
fix(server): allow using deprecated landing page fields
This is a hotfix commit which allows the use of [server.landing_page]
fields even when the [landing_page] section does not exist in the
configuration file.
2023-07-01 17:28:56 +03:00
Orhun Parmaksız 4ca95cb381
chore(release): prepare for v0.11.0 2023-07-01 12:30:16 +03:00
Orhun Parmaksız fe38ef8835
chore(deps): upgrade transitive dependencies 2023-07-01 11:43:12 +03:00
Orhun Parmaksız b23e9f64bf
chore(github): add pull request template 2023-07-01 01:25:26 +03:00
Orhun Parmaksız 074991810e
chore(style): add editorconfig 2023-07-01 01:21:02 +03:00
Helmut K. C. Tessarek 62bbfef6a3
feat(server): add random suffix mode (#69)
* add random suffix mode

* fix linter issues

* add test case

* fix linter issues

* add comments, remove empty lines and single line declarations

* more test cases

* refactor(config): rename suffix_mode to random_suffix

* refactor(paste): clean up the random suffix logic

* chore(config): add random suffix example to default config

* docs(readme): mention random suffix feature

* test(fixtures): add fixture test for random suffix mode

* random_suffix -> suffix_mode

* fix default extension for .dotfile w/o extension

* fix formatting

* style(format): fix the indentation for random suffix fixture

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-07-01 00:11:16 +02:00
dependabot[bot] d740ae7e89
chore(deps): bump tokio from 1.29.0 to 1.29.1 (#77)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.29.0 to 1.29.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.0...tokio-1.29.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-30 14:59:55 +02:00
Orhun Parmaksız b549e3df7b
chore(deps): bump shuttle dependencies to 0.20.0 2023-06-29 16:28:15 +03:00
dependabot[bot] 38fd3cf8df
chore(deps): bump tokio from 1.28.2 to 1.29.0 (#73)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.28.2 to 1.29.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.2...tokio-1.29.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-29 15:23:06 +02:00
Ömer Furkan Demircioğlu d51b68da10
style(server): add new line character to 404 message (#72) 2023-06-27 15:08:46 +02:00
Orhun Parmaksız 40a87c586b
fix(config): warn about the deprecated fields even though the section does not exist 2023-06-24 09:29:05 +03:00
Orhun Parmaksız 4df136870a
fix(deploy): use the static folder for config (#70) 2023-06-23 18:33:05 +03:00
Helmut K. C. Tessarek aa1734b3f8
refactor(config): use a separate section for the landing page (#65)
* add [landing_page] section to config

Migration path:

Old:

```
[server]
landing_page = "Landing page text."
landing_page_file = "index.html"
landing_page_content_type = "text/html; charset=utf-8"
```

New:

```
[landing_page]
text = "Landing page text."
file = "index.html"
content_type = "text/html; charset=utf-8"
```

* fix typo and remove comments

* make the section optional

* make the section optional

* test(server): fix landing page related test failures

* also change html_form.toml

* do not break current config

* refactor(config): deprecate server.landing_page config fields

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-06-23 17:20:24 +02:00
Orhun Parmaksız 62c461702a
feat(shuttle): allow manually running the deployment job 2023-06-23 17:24:51 +03:00
dependabot[bot] 8f8e0caab0
chore(deps): bump infer from 0.13.0 to 0.14.0 (#71)
Bumps [infer](https://github.com/bojand/infer) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/bojand/infer/releases)
- [Commits](https://github.com/bojand/infer/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: infer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 16:07:08 +02:00
Orhun Parmaksız ff9fd68e89
chore(deps): bump shuttle dependencies to 0.19.0 2023-06-20 23:13:00 +03:00
Orhun Parmaksız 5b01c98243
docs(readme): note that the Alpine package is moved to the community 2023-06-16 17:41:59 +03:00
Orhun Parmaksız 1f041d3f74
refactor(example): use a file for HTML form landing page example 2023-06-16 17:38:12 +03:00
Helmut K. C. Tessarek e0d6712dd3
feat(server): support a file for the landing page (#64)
* implemented landing_page_file

* fixed issues found by linter

* fixed formatting

* refactor(config): refactor landing page file handling

* add tests

* fix unnecessary conversion

* fix formatting

* remove comment

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-06-16 16:21:44 +02:00
Helmut K. C. Tessarek f7beaef502
feat(server): honor X-Forward-* headers (#61)
* honor X-Forward-* headers

Behind a reverse proxy, the log entries always showed the IP address of the reverse proxy.
With this change the real IP address of the client is shown.
Since the IP address is only used for info in the log, there are no security implications.

* style(format): apply formatting

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-06-13 01:00:55 +02:00
Helmut K. C. Tessarek 917074158a
docs(readme): list all supported units for expiry (#63)
These suffixes are also supported in the `config.toml`.
2023-06-13 00:14:05 +02:00
dependabot[bot] 6d3d224307
chore(deps): bump log from 0.4.18 to 0.4.19 (#62)
Bumps [log](https://github.com/rust-lang/log) from 0.4.18 to 0.4.19.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.18...0.4.19)

---
updated-dependencies:
- dependency-name: log
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-13 00:13:07 +02:00
dependabot[bot] b3fd28795d
chore(deps): bump serde from 1.0.163 to 1.0.164 (#60)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 18:04:03 +02:00
Orhun Parmaksız a1bc77430e
chore(release): prepare for v0.10.1 2023-06-06 00:29:52 +03:00
dependabot[bot] 07ec392867
chore(deps): bump hotwatch from 0.4.6 to 0.5.0 (#55)
Bumps [hotwatch](https://github.com/francesca64/hotwatch) from 0.4.6 to 0.5.0.
- [Release notes](https://github.com/francesca64/hotwatch/releases)
- [Changelog](https://github.com/francesca64/hotwatch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/francesca64/hotwatch/compare/v0.4.6...v0.5.0)

---
updated-dependencies:
- dependency-name: hotwatch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 23:15:30 +02:00
dependabot[bot] b4d1178ca4
chore(deps): bump shuttle dependencies to 0.18.0
chore(deps): bump shuttle-actix-web from 0.17.0 to 0.18.0

Bumps shuttle-actix-web from 0.17.0 to 0.18.0.

---
updated-dependencies:
- dependency-name: shuttle-actix-web
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

chore(deps): bump shuttle-runtime from 0.17.0 to 0.18.0

Bumps shuttle-runtime from 0.17.0 to 0.18.0.

---
updated-dependencies:
- dependency-name: shuttle-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

chore(deps): bump shuttle-static-folder from 0.17.0 to 0.18.0

Bumps shuttle-static-folder from 0.17.0 to 0.18.0.

---
updated-dependencies:
- dependency-name: shuttle-static-folder
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 23:50:16 +03:00
Orhun Parmaksız c9bc01fe65
chore(shuttle): test the shuttle builds 2023-06-05 23:41:26 +03:00
dependabot[bot] 39c85977bf
chore(deps): bump url from 2.3.1 to 2.4.0 (#56)
Bumps [url](https://github.com/servo/rust-url) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: url
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 22:28:25 +02:00
Orhun Parmaksız 19cb7cccb7
refactor(middleware): polish the ContentLengthLimiter implementation 2023-06-05 23:02:10 +03:00
Orhun Parmaksız 1670a71cdd
feat(server): implement middleware for limiting the content length (#53) 2023-06-05 22:49:26 +03:00
Orhun Parmaksız a13c0f123a
fix(hotwatch): do not drop the config watcher 2023-06-04 14:43:08 +03:00
Orhun Parmaksız d4d8a28783
chore(release): prepare for v0.10.0 2023-05-31 02:16:47 +03:00
Orhun Parmaksız 4f539d2246
chore(deps): upgrade transitive dependencies 2023-05-31 02:15:16 +03:00
Orhun Parmaksız f165c29faf
docs(readme): add link to the blog post 2023-05-31 01:24:46 +03:00
Orhun Parmaksız ebe2087845
docs(readme): add table of contents 2023-05-31 01:22:57 +03:00
Chris Jones 1a89589669
docs(example): add information about using HTML form (#51)
* docs(readme): add information about using html form

* chore(example): improve HTML form example

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-05-31 00:21:15 +02:00
Orhun Parmaksız 1a9163639c
chore(log): add startup log for showing the server address 2023-05-31 00:53:59 +03:00
dependabot[bot] ea01ba5794
chore(deps): bump tokio from 1.28.1 to 1.28.2 (#49)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.28.1 to 1.28.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.1...tokio-1.28.2)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 18:34:00 +02:00
dependabot[bot] cc16878b00
chore(deps): bump log from 0.4.17 to 0.4.18 (#50)
Bumps [log](https://github.com/rust-lang/log) from 0.4.17 to 0.4.18.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.17...0.4.18)

---
updated-dependencies:
- dependency-name: log
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 18:33:02 +02:00