diff --git a/.github/stale.yml b/.github/stale.yml
index a1b7aa1..2a79225 100644
--- a/.github/stale.yml
+++ b/.github/stale.yml
@@ -1,19 +1,57 @@
-# Number of days of inactivity before an issue becomes stale
+# Configuration for probot-stale - https://github.com/probot/stale
+
+# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60
-# Number of days of inactivity before a stale issue is closed
+
+# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
+# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7
-# Issues with these labels will never be considered stale
-exemptLabels:
- - pinned
- - security
- - enhancement
- - feature request
-# Label to use when marking an issue as stale
-staleLabel: wontfix
-# Comment to post when marking an issue as stale. Set to `false` to disable
+
+# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
+onlyLabels: []
+
+# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
+exemptLabels: []
+
+# Set to true to ignore issues in a project (defaults to false)
+exemptProjects: false
+
+# Set to true to ignore issues in a milestone (defaults to false)
+exemptMilestones: false
+
+# Set to true to ignore issues with an assignee (defaults to false)
+exemptAssignees: false
+
+# Label to use when marking as stale
+staleLabel: stale
+
+# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: true
+
+# Comment to post when closing a stale Issue or Pull Request.
+# closeComment: >
+# Your comment here.
+
+# Limit the number of actions per hour, from 1-30. Default is 30
+limitPerRun: 30
+
+# Limit to only `issues` or `pulls`
+# only: issues
+
+# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
+# pulls:
+# daysUntilStale: 30
+# markComment: >
+# This pull request has been automatically marked as stale because it has not had
+# recent activity. It will be closed if no further activity occurs. Thank you
+# for your contributions.
+
+issues:
+ exemptLabels:
+ - enhancement
+ - feature request
+ - documentation
+ - bug
diff --git a/Dockerfile b/Dockerfile
index 1b24728..7b3e5e4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,10 @@
# Build stage
FROM golang:1.16.7-alpine3.14 as builder
LABEL maintainer="Khanh Ngo
in this email you can file your personal configuration for our wireguard server.
+In this email you can find your personal configuration for our wireguard server.
Best
` @@ -43,6 +43,7 @@ const ( func init() { // command-line flags and env variables + flag.BoolVar(&flagDisableLogin, "disable-login", util.LookupEnvOrBool("DISABLE_LOGIN", flagDisableLogin), "Disable authentication on the app. This is potentially dangerous.") flag.StringVar(&flagBindAddress, "bind-address", util.LookupEnvOrString("BIND_ADDRESS", flagBindAddress), "Address:Port to which the app will be bound.") flag.StringVar(&flagSendgridApiKey, "sendgrid-api-key", util.LookupEnvOrString("SENDGRID_API_KEY", flagSendgridApiKey), "Your sendgrid api key.") flag.StringVar(&flagEmailFrom, "email-from", util.LookupEnvOrString("EMAIL_FROM_ADDRESS", flagEmailFrom), "'From' email address.") @@ -104,6 +105,7 @@ func main() { sendmail := emailer.NewSendgridApiMail(util.SendgridApiKey, util.EmailFromName, util.EmailFrom) + app.GET("/_health", handler.Health()) app.GET("/logout", handler.Logout(), handler.ValidSession) app.POST("/new-client", handler.NewClient(db), handler.ValidSession) app.POST("/update-client", handler.UpdateClient(db), handler.ValidSession) diff --git a/prepare_assets.sh b/prepare_assets.sh index 31dd1bb..66a66b3 100755 --- a/prepare_assets.sh +++ b/prepare_assets.sh @@ -4,7 +4,9 @@ set -e DIR=$(dirname "$0") # install node modules -yarn install --pure-lockfile --production +YARN=yarn +[ -x /usr/bin/lsb_release ] && [ -n "`lsb_release -i | grep Debian`" ] && YARN=yarnpkg +$YARN install --pure-lockfile --production # Copy admin-lte dist mkdir -p "${DIR}/assets/dist/js" "${DIR}/assets/dist/css" && \ diff --git a/templates/base.html b/templates/base.html index 6b09a32..6705c6d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -44,17 +44,17 @@ - + + + + + + + + + + + +1420
. You might want
+ to adjust the MTU size if your connection (e.g PPPoE, 3G, satellite network, etc) has a low MTU.PersistentKeepalive
+ can ensure that the connection remains open.