adminer = mypkgs.adminer.phpFpm.pool;
connexionswing_dev = mypkgs.connexionswing_dev.phpFpm.pool;
connexionswing_prod = mypkgs.connexionswing_prod.phpFpm.pool;
- www = ''
- listen = /var/run/phpfpm/www.sock
- user = wwwrun
- group = wwwrun
- listen.owner = wwwrun
- listen.group = wwwrun
- pm = ondemand
- pm.max_children = 5
- pm.process_idle_timeout = 60
- ;php_admin_flag[log_errors] = on
- php_admin_value[open_basedir] = "/var/www"
- '';
};
};
connexionswing_prod = mypkgs.connexionswing_prod.activationScript;
httpd = ''
install -d -m 0755 /var/lib/acme/acme-challenge
- install -d -m 0755 /var/www
'';
redis = ''
mkdir -p /run/redis
(withSSL "eldiron" // {
listen = [ { ip = "*"; port = 443; } ];
hostName = "eldiron.immae.eu";
- # FIXME: directory needs to exist
- documentRoot = "/var/www";
+ documentRoot = ./www;
+ extraConfig = ''
+ DirectoryIndex index.htm
+ '';
})
(withSSL "eldiron" // {
listen = [ { ip = "*"; port = 443; } ];
--- /dev/null
+google-site-verification: googleb6d69446ff4ca3e5.html
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Hello World HTML</title>
+ </head>
+ <body>
+ <h1>It works!</h1>
+ </body>
+</html>
--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <title>Maintenance</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <style>
+ body {
+ padding-left: 5px;
+ padding-right: 5px;
+ text-align: center;
+ margin: auto;
+ font: 20px Helvetica, sans-serif;
+ color: #333;
+ }
+ h1 {
+ margin: 0px;
+ font-size: 40px;
+ }
+ article {
+ display: block;
+ max-width: 650px;
+ margin: 0 auto;
+ padding-top: 30px;
+ }
+ article + article {
+ border-top: 1px solid lightgrey;
+ }
+ article div {
+ text-align: justify;
+ }
+ a {
+ color: #dc8100;
+ text-decoration: none;
+ }
+ a:hover {
+ color: #333;
+ }
+ </style>
+ <script type="text/javascript">
+ setTimeout(function () { location.reload(true); }, 5000);
+ </script>
+ </head>
+ <body>
+ <article>
+ <h1>Erreur serveur ou maintenance en cours !</h1>
+ <div>
+ <p>Une mise à jour ou une opération de maintenance est en cours sur le site. <a href="">Retentez</a> dans quelques instants ou patientez, la page se rechargera automatiquement.</p>
+ </div>
+ </article>
+
+ <article>
+ <h1>Server error or website in maintenance!</h1>
+ <div>
+ <p>An update or a maintenance is on track on the website. Please try <a href="">again</a> in a few seconds or wait, the page will reload automatically.</p>
+ </div>
+ </article>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>No SSL site</title>
+ </head>
+ <body>
+ <h1>No SSL on this site</h1>
+ <p>Use for wifi networks with login page that doesn't work well with
+ https.</p>
+ </body>
+</html>