Skip to content

Releases: steffenbusch/caddy-extra-placeholders

v0.8.0

26 Jan 11:41
18be11e
Compare
Choose a tag to compare

What's Changed

New placeholders

  • {extra.newline} -> Represents a newline character (\n). See #22 for use case and background

Full Changelog: v0.7.2...v0.8.0

v0.7.2

11 Jan 10:21
055ee33
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/shirou/gopsutil/v4 from 4.24.10 to 4.24.11 by @dependabot in #15
  • Bump github.com/quic-go/quic-go from 0.44.0 to 0.48.2 by @dependabot in #16
  • Bump golang.org/x/crypto from 0.26.0 to 0.31.0 by @dependabot in #17
  • Bump github.com/shirou/gopsutil/v4 from 4.24.11 to 4.24.12 by @dependabot in #18
  • Bump golang.org/x/net from 0.28.0 to 0.33.0 by @dependabot in #20
  • Bump github.com/caddyserver/caddy/v2 from 2.8.4 to 2.9.1 by @dependabot in #21

Full Changelog: v0.7.1...v0.7.2

v0.7.1

24 Nov 13:57
d168d15
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/shirou/gopsutil/v4 from 4.24.9 to 4.24.10 by @dependabot in #10
  • README: Removed "expression" keyword from example as it's not necessary in #12
  • README: Add "map" example for conditional redirect w/ header and global order in #14

New Contributors

Full Changelog: v0.7.0...v0.7.1

v0.7.0

27 Oct 21:40
Compare
Choose a tag to compare

What's Changed

  • New placeholders for weekday as integer - just like weekday in crontab (0 = Sunday, 1 = Monday, etc.)

New placeholders

  • {extra.time.now.weekday_int} -> Current day of the week as an integer (Sunday = 0, Monday = 1, ..., Saturday = 6).
  • {extra.time.now.utc.weekday_int} -> Current day of the week in UTC as an integer (Sunday = 0, Monday = 1, ..., Saturday = 6). |

Full Changelog: v0.6.1...v.0.7.0

v0.6.1

27 Oct 15:46
Compare
Choose a tag to compare

Fix comment

Full Changelog: v0.6.0...v0.6.1

v0.6.0

27 Oct 14:20
Compare
Choose a tag to compare

What's Changed

  • Code refactoring
  • New placeholders for UTC equivalents of the current time placeholders - see below
  • Add placeholder support for subdirective time_format_custom

New placeholders

UTC equivalents of the current time placeholders (with .utc added):

  • {extra.time.now.utc.month} -> Current month in UTC as an integer (e.g., 10 for October).
  • {extra.time.now.utc.month_padded} -> Current month in UTC as a zero-padded string (e.g., "05" for May).
  • {extra.time.now.utc.day} -> Current day of the month in UTC as an integer.
  • {extra.time.now.utc.day_padded} -> Current day of the month in UTC as a zero-padded string.
  • {extra.time.now.utc.hour} -> Current hour in UTC in 24-hour format as an integer.
  • {extra.time.now.utc.hour_padded} -> Current hour in UTC in 24-hour format as a zero-padded string.
  • {extra.time.now.utc.minute} -> Current minute in UTC as an integer.
  • {extra.time.now.utc.minute_padded} -> Current minute in UTC as a zero-padded string.
  • {extra.time.now.utc.second} -> Current second in UTC as an integer.
  • {extra.time.now.utc.second_padded} -> Current second in UTC as a zero-padded string.
  • {extra.time.now.utc.timezone_offset} -> UTC timezone offset (always +0000).
  • {extra.time.now.utc.timezone_name} -> UTC timezone abbreviation (always UTC).
  • {extra.time.now.utc.iso_week} -> Current ISO week number of the year in UTC.
  • {extra.time.now.utc.iso_year} -> ISO year corresponding to the current ISO week in UTC.
  • {extra.time.now.utc.custom} -> Current UTC time in a custom format, configurable via the time_format_custom directive.

Full Changelog: v0.5.1...v0.6.0

v0.5.1

27 Oct 10:06
Compare
Choose a tag to compare

Minor improvements regarding code comments. Overhauled readme and added time-based greeting example

Full Changelog: v0.5.0...v0.5.1

v0.5.0

26 Oct 21:15
Compare
Choose a tag to compare

What's Changed

  • Add configurable new custom time format placeholder in #9
  • Add logging with the plugins configuration when its provisioned
  • Move Caddyfile logic to caddyfile.go

New placeholder

  • {extra.time.now.custom} -> Current time in a custom format, configurable via the time_format_custom directive.

Full Changelog: v0.4.0...v0.5.0

v0.4.0

26 Oct 19:55
7c3e007
Compare
Choose a tag to compare

What's Changed

  • Add more time now placeholders in #7

New placeholders

  • {extra.time.now.month} -> Current month as an integer (e.g., 5 for May).
  • {extra.time.now.month_padded} -> Current month as a zero-padded string (e.g., "05" for May).
  • {extra.time.now.day} -> Current day of the month as an integer.
  • {extra.time.now.day_padded} -> Current day of the month as a zero-padded string.
  • {extra.time.now.hour} -> Current hour in 24-hour format as an integer.
  • {extra.time.now.hour_padded} -> Current hour in 24-hour format as a zero-padded string.
  • {extra.time.now.minute} -> Current minute as an integer.
  • {extra.time.now.minute_padded} -> Current minute as a zero-padded string.
  • {extra.time.now.second} -> Current second as an integer.
  • {extra.time.now.second_padded} -> Current second as a zero-padded string.
  • {extra.time.now.timezone_offset} -> The current timezone offset from UTC (e.g., +0200).
  • {extra.time.now.timezone_name} -> The current timezone abbreviation (e.g., CEST).
  • {extra.time.now.iso_week} -> The current ISO week number of the year.
  • {extra.time.now.iso_year} -> The ISO year corresponding to the current ISO week.

Full Changelog: v0.3.0...v0.4.0

v0.3.0

26 Oct 19:03
5e20efe
Compare
Choose a tag to compare

What's Changed

  • Make integer rand min and max configurable in #5

Changed placeholder names

  • {extra.rand.int.0-100} -> {extra.rand.int}

Full Changelog: v0.2.0...v0.3.0