diff options
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/ymir-nginx.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/custom/ymir-nginx.nix b/custom/ymir-nginx.nix index a36ac79e..1a02d4c7 100644 --- a/custom/ymir-nginx.nix +++ b/custom/ymir-nginx.nix | |||
| @@ -95,6 +95,45 @@ in { | |||
| 95 | listen [::]:80; | 95 | listen [::]:80; |
| 96 | listen *:443 ssl; | 96 | listen *:443 ssl; |
| 97 | listen [::]:443 ssl; | 97 | listen [::]:443 ssl; |
| 98 | server_name ~^(.*\.)?(f|files)\.(yggdrasil\.li|141\.li|praseodym\.org)$; | ||
| 99 | |||
| 100 | include ${favicon}; | ||
| 101 | include ${acme}; | ||
| 102 | |||
| 103 | root /srv/www/files; | ||
| 104 | } | ||
| 105 | |||
| 106 | server { | ||
| 107 | listen *:80; | ||
| 108 | listen *:443 ssl; | ||
| 109 | listen [::]:80; | ||
| 110 | listen [::]:443 ssl; | ||
| 111 | server_name ~^(.*\.)?git\.yggdrasil\.li$; | ||
| 112 | |||
| 113 | root ${pkgs.cgit}/cgit; | ||
| 114 | |||
| 115 | try_files $uri @cgit; | ||
| 116 | |||
| 117 | include ${favicon}; | ||
| 118 | include ${acme}; | ||
| 119 | |||
| 120 | location @cgit { | ||
| 121 | include ${uwsgi_params}; | ||
| 122 | uwsgi_pass unix:/tmp/cgit.sock; | ||
| 123 | uwsgi_modifier1 9; | ||
| 124 | } | ||
| 125 | } | ||
| 126 | ''; | ||
| 127 | }; | ||
| 128 | } | ||
| 129 | |||
| 130 | } | ||
| 131 | |||
| 132 | server { | ||
| 133 | listen *:80; | ||
| 134 | listen [::]:80; | ||
| 135 | listen *:443 ssl; | ||
| 136 | listen [::]:443 ssl; | ||
| 98 | server_name ~^(.*\.)?dirty-haskell\.org$; | 137 | server_name ~^(.*\.)?dirty-haskell\.org$; |
| 99 | 138 | ||
| 100 | include ${favicon}; | 139 | include ${favicon}; |
