From 408d244471c288a1f658704a350aacf697daff74 Mon Sep 17 00:00:00 2001 From: Rithas K Date: Sun, 2 Jun 2024 10:29:11 +0530 Subject: [PATCH 1/2] Log real IP address Log real IP address of the client when accessed through a reverse proxy --- serve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/serve.go b/serve.go index ab11789..064e98a 100644 --- a/serve.go +++ b/serve.go @@ -12,6 +12,7 @@ import ( // Serve starts the app's web server func Serve() { r := chi.NewRouter() + r.Use(middleware.RealIP) r.Use(middleware.Logger, middleware.CleanPath, middleware.StripSlashes) r.NotFound(NotFound) From e5962ebfe7aed259802ec5043a5d644cb9cd1894 Mon Sep 17 00:00:00 2001 From: Rithas K Date: Sun, 2 Jun 2024 11:53:40 +0530 Subject: [PATCH 2/2] Fix textarea padding in Safari Use `box-sizing: border-box` to include padding in the width of the textarea. Also, > Box-sizing should be border-box by default from [csswg](https://wiki.csswg.org/ideas/mistakes) --- public/main.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/main.css b/public/main.css index 9c48afb..7a3d058 100644 --- a/public/main.css +++ b/public/main.css @@ -25,6 +25,10 @@ --textarea-border-dark: #454545; } +* { + box-sizing: border-box; +} + body { color: var(--text-light); background-color: var(--bg-light);