Skip to content

Commit

Permalink
[nixos/server] solidtime reverse proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Dec 5, 2024
1 parent 04ec359 commit 66bdbfd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions nixos/server/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,25 @@ in {
};
};

"solidtime.pascal-wittmann.de" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3050";
extraConfig = ''
if ($is_allowed = 0) {
return 403;
}
# Set headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
};

"users.pascal-wittmann.de" = {
forceSSL = true;
enableACME = true;
Expand Down

0 comments on commit 66bdbfd

Please sign in to comment.