clouvider-fra01: add content.int.lukegb.com

This commit is contained in:
Luke Granger-Brown 2021-10-19 07:06:37 +01:00
parent d8fbac99a4
commit b94b586d5b
3 changed files with 18 additions and 3 deletions

View file

@ -18,10 +18,20 @@ let
"int.lukegb.com" = depot.web.int;
"logged-out.int.lukegb.com" = depot.web.logged-out-int;
};
other = _apply lib.id {
"content.int.lukegb.com" = {
locations."/" = {
alias = "/store/content/";
extraConfig = ''
autoindex on;
'';
};
};
};
_apply = f: builtins.mapAttrs (name: value: lib.recursiveUpdate hostBase (f value));
};
};
vhosts = vhostsConfig.int.proxy // vhostsConfig.int.serve;
vhosts = vhostsConfig.int.proxy // vhostsConfig.int.serve // vhostsConfig.int.other;
hostBase = {
listen = [{
addr = config.my.ip.tailscale;
@ -181,6 +191,9 @@ in {
enable = true;
virtualHosts = vhosts;
};
systemd.services.nginx.serviceConfig = {
SupplementaryGroups = [ "content" ];
};
services.ipfs = {
enable = true;

View file

@ -226,6 +226,7 @@ in {
(service "clouvider-fra01" "sonarr.int.lukegb.com" {})
(service "clouvider-fra01" "radarr.int.lukegb.com" {})
(service "clouvider-fra01" "deluge.int.lukegb.com" {})
(service "clouvider-fra01" "content.int.lukegb.com" {})
(service "totoro:9090" "prometheus.int.lukegb.com" {})
(service "totoro:9093" "alertmanager.int.lukegb.com" {})
(service "totoro:3000" "grafana.int.lukegb.com" {})

View file

@ -12,8 +12,9 @@ SPDX-License-Identifier: Apache-2.0
<body>
<h1>int.lukegb.com</h1>
<ul>
<li><a href="https://sonarr.int.lukegb.com">sonarr</a></li>
<li><a href="https://radarr.int.lukegb.com">radarr</a></li>
<li><a href="https://sonarr.int.lukegb.com">sonarr (TV)</a></li>
<li><a href="https://radarr.int.lukegb.com">radarr (film)</a></li>
<li><a href="https://content.int.lukegb.com">content</a></li>
<li><a href="https://deluge.int.lukegb.com">deluge</a></li>
<li><a href="https://prometheus.int.lukegb.com">prometheus</a></li>
<li><a href="https://grafana.int.lukegb.com">grafana</a></li>