Merge pull request #2

Log real IP address and fix textarea padding in Safari
This commit is contained in:
Andrey N 2024-06-02 12:07:09 +03:00 committed by GitHub
commit ada165fe29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,10 @@
--textarea-border-dark: #454545; --textarea-border-dark: #454545;
} }
* {
box-sizing: border-box;
}
body { body {
color: var(--text-light); color: var(--text-light);
background-color: var(--bg-light); background-color: var(--bg-light);

View file

@ -12,6 +12,7 @@ import (
// Serve starts the app's web server // Serve starts the app's web server
func Serve() { func Serve() {
r := chi.NewRouter() r := chi.NewRouter()
r.Use(middleware.RealIP)
r.Use(middleware.Logger, middleware.CleanPath, middleware.StripSlashes) r.Use(middleware.Logger, middleware.CleanPath, middleware.StripSlashes)
r.NotFound(NotFound) r.NotFound(NotFound)