fix(hydrogen): uncomment some code + formatting
This commit is contained in:
parent
28ac9f2d1f
commit
8f60310431
|
@ -9,9 +9,9 @@
|
||||||
hostName = name;
|
hostName = name;
|
||||||
domain = "fainsin.bzh";
|
domain = "fainsin.bzh";
|
||||||
firewall.allowedTCPPorts = [
|
firewall.allowedTCPPorts = [
|
||||||
22 # ssh
|
22 # ssh
|
||||||
80 # http
|
80 # http
|
||||||
443 # https
|
443 # https
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,34 +32,33 @@
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
# recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
# recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
# recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
# commonHttpConfig = ''
|
commonHttpConfig = ''
|
||||||
# log_format vhosts '$host $remote_addr - $remote_user [$time_local] '
|
log_format vhosts '$host $remote_addr - $remote_user [$time_local] '
|
||||||
# "$request" $status $body_bytes_sent "$http_referer" '
|
'$request $status $body_bytes_sent $http_referer '
|
||||||
# '"$http_user_agent" "$http_x_forwarded_for"';
|
'$http_user_agent $http_x_forwarded_for';
|
||||||
|
access_log /var/log/nginx/access.log vhosts;
|
||||||
# access_log /var/log/nginx/access.log vhosts;
|
'';
|
||||||
# '';
|
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"fainsin.bzh" = {
|
"fainsin.bzh" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".return = "301 \"$scheme://laurent.fainsin.bzh$request_uri\"";
|
locations."/".return = "301 \"$scheme://laurent.fainsin.bzh$request_uri\"";
|
||||||
};
|
};
|
||||||
"laurent.fainsin.bzh" = {
|
"laurent.fainsin.bzh" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = "/srv/www/";
|
root = "/srv/www/";
|
||||||
};
|
};
|
||||||
default = {
|
default = {
|
||||||
default = true;
|
default = true;
|
||||||
locations."/".return = "301 \"$scheme://fainsin.bzh\" ";
|
locations."/".return = "301 \"$scheme://fainsin.bzh\" ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue