Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Katharina Fey
forge
Commits
a3ca35f6
Verified
Commit
a3ca35f6
authored
Jan 10, 2019
by
Katharina Fey
🏴
Browse files
Adding the outline of a forge module
parent
bfd6f3a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
forge.nix
View file @
a3ca35f6
{
...
}:
{
options
=
{};
options
=
{
enable
=
mkEnableOption
"forge"
;
package
=
mkOption
{
type
=
types
.
path
;
default
=
pkgs
.
forge
;
description
=
"Path to the forge sources"
;
};
bind
=
mkOption
{
type
=
types
.
str
;
default
=
"0.0.0.0"
;
description
=
"Address to bind forge server to"
;
};
port
=
mkOption
{
type
=
types
.
integer
;
default
=
12220
;
description
=
"The port to bind the (internal) forge server to"
;
};
route
=
mkOption
{
type
=
types
.
str
;
default
=
"/rebuild"
;
description
=
"The HTTP route to listen to"
;
};
tokenHash
=
mkOption
{
type
=
types
.
str
;
default
=
null
;
description
=
''
Your CI will use a token to send to the forge server as a secret.
This secret is used as a key to secure other secrets.
In order to verify the validity of an incoming request, forge
uses a salted SHA256 hash of the secret. You can use `forge-cli`
to generate this hash.
''
;
};
config
=
{};
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment