Merge pull request 'forgejo: allow webhooks to all pub.solar subdomains' (#80) from fix/forgejo-matrix-webhook into main

Reviewed-on: pub-solar/infra#80
Reviewed-by: teutat3s <teutat3s@noreply.git.pub.solar>
This commit is contained in:
teutat3s 2023-12-13 01:11:48 +00:00
commit 6f0801d419
Signed by: pub.solar gitea
GPG key ID: F0332B04B7054873

View file

@ -51,7 +51,9 @@
HTTP_ADDR = "127.0.0.1"; HTTP_ADDR = "127.0.0.1";
HTTP_PORT = 3000; HTTP_PORT = 3000;
}; };
log.LEVEL = "Warn"; log.LEVEL = "Warn";
mailer = { mailer = {
ENABLED = true; ENABLED = true;
PROTOCOL = "smtps"; PROTOCOL = "smtps";
@ -60,14 +62,17 @@
FROM = ''"pub.solar git server" <forgejo@pub.solar>''; FROM = ''"pub.solar git server" <forgejo@pub.solar>'';
USER = "admins@pub.solar"; USER = "admins@pub.solar";
}; };
"repository.signing" = { "repository.signing" = {
SIGNING_KEY = "default"; SIGNING_KEY = "default";
MERGES = "always"; MERGES = "always";
}; };
openid = { openid = {
ENABLE_OPENID_SIGNIN = true; ENABLE_OPENID_SIGNIN = true;
ENABLE_OPENID_SIGNUP = true; ENABLE_OPENID_SIGNUP = true;
}; };
service = { service = {
# uncomment after initial deployment, first user is admin user # uncomment after initial deployment, first user is admin user
# required to setup SSO (oauth openid-connect, keycloak auth provider) # required to setup SSO (oauth openid-connect, keycloak auth provider)
@ -75,15 +80,24 @@
ENABLE_NOTIFY_MAIL = true; ENABLE_NOTIFY_MAIL = true;
DEFAULT_KEEP_EMAIL_PRIVATE = true; DEFAULT_KEEP_EMAIL_PRIVATE = true;
}; };
session = { session = {
PROVIDER = "db"; PROVIDER = "db";
COOKIE_SECURE = lib.mkForce true; COOKIE_SECURE = lib.mkForce true;
}; };
# https://forgejo.org/docs/latest/admin/config-cheat-sheet/#webhook-webhook
webhook = {
ALLOWED_HOST_LIST = "loopback,external,*.pub.solar";
};
# See https://forgejo.org/docs/latest/admin/actions/ # See https://forgejo.org/docs/latest/admin/actions/
actions.ENABLED = true; actions = {
# In an actions workflow, when uses: does not specify an absolute URL, ENABLED = true;
# the value of DEFAULT_ACTIONS_URL is prepended to it. # In an actions workflow, when uses: does not specify an absolute URL,
actions.DEFAULT_ACTIONS_URL = "https://code.forgejo.org"; # the value of DEFAULT_ACTIONS_URL is prepended to it.
DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
};
}; };
}; };