Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NixOS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Lenz
NixOS
Commits
417976fc
Verified
Commit
417976fc
authored
3 weeks ago
by
Nicolas Lenz
Browse files
Options
Downloads
Patches
Plain Diff
feat: wip
parent
219a18b3
Branches
private-notes
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nixos/server/git.nix
+9
-0
9 additions, 0 deletions
nixos/server/git.nix
nixos/server/proxy.nix
+1
-0
1 addition, 0 deletions
nixos/server/proxy.nix
with
10 additions
and
0 deletions
nixos/server/git.nix
+
9
−
0
View file @
417976fc
...
@@ -423,6 +423,15 @@ See:
...
@@ -423,6 +423,15 @@ See:
# serve from notes instead of main website
# serve from notes instead of main website
middlewares
=
[
"redirect-notes-index"
"replace-notes"
];
middlewares
=
[
"redirect-notes-index"
"replace-notes"
];
};
};
pagesEisfunkeNotesPrivate
=
{
rule
=
"Host(`www.eisfunke.com`) && (Path(`/notes/private`) || PathPrefix(`/notes/private/`))"
;
priority
=
3001
;
# must be higher priority than the main pagesEisfunkeNotes router
entrypoints
=
[
"websecure"
];
tls
.
certResolver
=
"tls"
;
service
=
"pagesCustom"
;
# serve from notes instead of main website
middlewares
=
[
"auth-dashboard"
"replace-notes"
];
};
# blackhole the original GitLab pages notes domain to ensure only the actual domain is used
# blackhole the original GitLab pages notes domain to ensure only the actual domain is used
pagesEisfunkeNotesBlackhole
=
{
pagesEisfunkeNotesBlackhole
=
{
rule
=
"Host(`notes-8efb78.pages.eisfunke.com`)"
;
rule
=
"Host(`notes-8efb78.pages.eisfunke.com`)"
;
...
...
This diff is collapsed.
Click to expand it.
nixos/server/proxy.nix
+
1
−
0
View file @
417976fc
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
};
};
log
.
level
=
"INFO"
;
log
.
level
=
"INFO"
;
accessLog
.
filters
.
statusCodes
=
[
"400-599"
];
metrics
.
prometheus
=
{
metrics
.
prometheus
=
{
entryPoint
=
"metrics"
;
entryPoint
=
"metrics"
;
addEntryPointsLabels
=
true
;
addEntryPointsLabels
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment