From dc9fb82633b0354630476c2547dafd8ff1bfb3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 29 Jan 2019 23:07:17 +0100 Subject: Add Denise&Jerome's website Fixes https://git.immae.eu/mantisbt/view.php?id=73 --- nixops/modules/websites/default.nix | 2 + nixops/modules/websites/ftp/denisejerome.nix | 48 +++++++++++ .../websites/ftp/denisejerome_goaccess.conf | 99 ++++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 nixops/modules/websites/ftp/denisejerome.nix create mode 100644 nixops/modules/websites/ftp/denisejerome_goaccess.conf (limited to 'nixops/modules') diff --git a/nixops/modules/websites/default.nix b/nixops/modules/websites/default.nix index 3b3ccc2..4a6a26f 100644 --- a/nixops/modules/websites/default.nix +++ b/nixops/modules/websites/default.nix @@ -94,6 +94,7 @@ in ./ftp/jerome.nix ./ftp/nassime.nix ./ftp/florian.nix + ./ftp/denisejerome.nix ./tools/db ./tools/tools ./tools/dav @@ -193,6 +194,7 @@ in services.myWebsites.Jerome.production.enable = cfg.production.enable; services.myWebsites.Nassime.production.enable = cfg.production.enable; services.myWebsites.Florian.production.enable = cfg.production.enable; + services.myWebsites.DeniseJerome.production.enable = cfg.production.enable; services.myWebsites.Chloe.integration.enable = cfg.integration.enable; services.myWebsites.Ludivine.integration.enable = cfg.integration.enable; diff --git a/nixops/modules/websites/ftp/denisejerome.nix b/nixops/modules/websites/ftp/denisejerome.nix new file mode 100644 index 0000000..2958d87 --- /dev/null +++ b/nixops/modules/websites/ftp/denisejerome.nix @@ -0,0 +1,48 @@ +{ lib, pkgs, config, myconfig, mylibs, ... }: +let + cfg = config.services.myWebsites.DeniseJerome; + varDir = "/var/lib/ftp/denisejerome"; + env = myconfig.env.websites.denisejerome; +in { + options.services.myWebsites.DeniseJerome = { + production = { + enable = lib.mkEnableOption "enable Denise Jerome's website"; + }; + }; + + imports = [ + ../commons/stats.nix + ]; + + config = lib.mkIf cfg.production.enable { + services.myWebsites.commons.stats.enable = true; + services.myWebsites.commons.stats.sites = [ + { + name = "denisejerome.piedsjaloux.fr"; + conf = ./denisejerome_goaccess.conf; + } + ]; + + security.acme.certs."denisejerome" = config.services.myCertificates.certConfig // { + domain = "denisejerome.piedsjaloux.fr"; + }; + + services.myWebsites.production.vhostConfs.denisejerome = { + certName = "denisejerome"; + hosts = ["denisejerome.piedsjaloux.fr" ]; + root = varDir; + extraConfig = [ + '' + Use Stats denisejerome.piedsjaloux.fr + + + DirectoryIndex index.htm index.html + Options Indexes FollowSymLinks MultiViews Includes + AllowOverride AuthConfig + Require all granted + + '' + ]; + }; + }; +} diff --git a/nixops/modules/websites/ftp/denisejerome_goaccess.conf b/nixops/modules/websites/ftp/denisejerome_goaccess.conf new file mode 100644 index 0000000..1379eae --- /dev/null +++ b/nixops/modules/websites/ftp/denisejerome_goaccess.conf @@ -0,0 +1,99 @@ +time-format %H:%M:%S +date-format %d/%b/%Y + +#sur immae.eu +#log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u" $^ + +log-format VCOMBINED +#= %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" + +html-prefs {"theme":"bright","layout":"vertical"} + +exclude-ip 188.165.209.148 +exclude-ip 178.33.252.96 +exclude-ip 2001:41d0:2:9c94::1 +exclude-ip 2001:41d0:2:9c94:: +exclude-ip 176.9.151.89 +exclude-ip 2a01:4f8:160:3445:: +exclude-ip 82.255.56.72 + +no-query-string true + +keep-db-files true +load-from-disk true +db-path /var/lib/goaccess/denisejerome.piedsjaloux.fr + +ignore-panel REFERRERS +ignore-panel KEYPHRASES + +static-file .css +static-file .js +static-file .jpg +static-file .png +static-file .gif +static-file .ico +static-file .jpeg +static-file .pdf +static-file .csv +static-file .mpeg +static-file .mpg +static-file .swf +static-file .woff +static-file .woff2 +static-file .xls +static-file .xlsx +static-file .doc +static-file .docx +static-file .ppt +static-file .pptx +static-file .txt +static-file .zip +static-file .ogg +static-file .mp3 +static-file .mp4 +static-file .exe +static-file .iso +static-file .gz +static-file .rar +static-file .svg +static-file .bmp +static-file .tar +static-file .tgz +static-file .tiff +static-file .tif +static-file .ttf +static-file .flv +#static-file .less +#static-file .ac3 +#static-file .avi +#static-file .bz2 +#static-file .class +#static-file .cue +#static-file .dae +#static-file .dat +#static-file .dts +#static-file .ejs +#static-file .eot +#static-file .eps +#static-file .img +#static-file .jar +#static-file .map +#static-file .mid +#static-file .midi +#static-file .ogv +#static-file .webm +#static-file .mkv +#static-file .odp +#static-file .ods +#static-file .odt +#static-file .otf +#static-file .pict +#static-file .pls +#static-file .ps +#static-file .qt +#static-file .rm +#static-file .svgz +#static-file .wav +#static-file .webp + + -- cgit v1.2.3