--- /dev/null
+{ lib, pkgs, config, myconfig, mylibs, ... }:
+let
+ cfg = config.services.myWebsites.Capitaines;
+ env = myconfig.env.websites.capitaines;
+ siteDir = ./mastodon_static;
+in {
+ options.services.myWebsites.Capitaines = {
+ production = {
+ enable = lib.mkEnableOption "enable Capitaines's website";
+ };
+ };
+
+ config = lib.mkIf cfg.production.enable {
+ security.acme.certs."capitaines_mastodon" = config.services.myCertificates.certConfig // {
+ domain = "mastodon.capitaines.fr";
+ };
+
+ services.myWebsites.production.vhostConfs.capitaines = {
+ certName = "capitaines_mastodon";
+ hosts = [ "mastodon.capitaines.fr" ];
+ root = siteDir;
+ extraConfig = [
+ ''
+ ErrorDocument 404 /index.html
+ <Directory ${siteDir}>
+ DirectoryIndex index.html
+ Options Indexes FollowSymLinks MultiViews Includes
+ Require all granted
+ </Directory>
+ ''
+ ];
+ };
+ };
+}
--- /dev/null
+<!DOCTYPE html>
+<html lang='en'>
+ <head>
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
+ <title>This instance is now closed - Mastodon</title>
+ <style>
+ body {
+ text-align: center;
+ background: #282c37;
+ font-family: sans-serif;
+ }
+ img {
+ max-width: 470px;
+ width: 100%;
+ }
+ h1 {
+ font-size: 20px;
+ font-weight: 400;
+ color: #9baec8;
+ }
+ </style>
+ </head>
+ <body>
+ <div>
+ <img alt='Mastodon' src='/oops.png'>
+ <h1>Sorry, this instance is closed now.</h1>
+ </div>
+ </body>
+</html>
./connexionswing
./tellesflorian
./emilia
+ ./capitaines
./ftp/jerome.nix
./ftp/nassime.nix
./ftp/florian.nix
services.myWebsites.Florian.production.enable = cfg.production.enable;
services.myWebsites.DeniseJerome.production.enable = cfg.production.enable;
services.myWebsites.Emilia.production.enable = cfg.production.enable;
+ services.myWebsites.Capitaines.production.enable = cfg.production.enable;
services.myWebsites.Chloe.integration.enable = cfg.integration.enable;
services.myWebsites.Ludivine.integration.enable = cfg.integration.enable;