diff --git a/.env.example b/.env.example index 30a20b3..901907d 100644 --- a/.env.example +++ b/.env.example @@ -2,4 +2,6 @@ APP_PORT=8080 APP_DEBUG=false MAXLEN=5120 -MAXFILES=128 \ No newline at end of file +MAXFILES=128 + +ADMIN_EMAIL=john.doe@example.com \ No newline at end of file diff --git a/views/main.pug b/views/main.pug index 091e2d8..8269ab2 100644 --- a/views/main.pug +++ b/views/main.pug @@ -11,4 +11,10 @@ block content p(style='color:darkred;font-weight:bold;font-size:9pt' align='center') | Max uploads limit exceeded. No more uploads would be accepted. br - | Contact site administrator so they would increase the limit or delete some upload. \ No newline at end of file + | Contact site administrator so they would increase the limit or delete some uploads. + if (process.env.ADMIN_EMAIL) + - let email = process.env.ADMIN_EMAIL; + br + br + | Admin email is: + a(href='mailto:' + email)= email \ No newline at end of file