|
|
@ -1,4 +1,3 @@
|
|
|
|
with import ../../../../modules/tailscale/default.nix;
|
|
|
|
|
|
|
|
let host = "jichan.org"; in {
|
|
|
|
let host = "jichan.org"; in {
|
|
|
|
services.nginx.virtualHosts."www.${host}" = {
|
|
|
|
services.nginx.virtualHosts."www.${host}" = {
|
|
|
|
forceSSL = true;
|
|
|
|
forceSSL = true;
|
|
|
@ -12,7 +11,7 @@ let host = "jichan.org"; in {
|
|
|
|
error_page 502 /502.html;
|
|
|
|
error_page 502 /502.html;
|
|
|
|
'';
|
|
|
|
'';
|
|
|
|
locations = {
|
|
|
|
locations = {
|
|
|
|
"/".proxyPass = "http://${elnuhub}:3334";
|
|
|
|
"/".proxyPass = "http://elnuhub:3334";
|
|
|
|
"/502.html".root = "${./502}";
|
|
|
|
"/502.html".root = "${./502}";
|
|
|
|
"/logo.svg".root = "${./502}";
|
|
|
|
"/logo.svg".root = "${./502}";
|
|
|
|
"/missing.min.css".root = "${../shared/502}";
|
|
|
|
"/missing.min.css".root = "${../shared/502}";
|
|
|
@ -20,7 +19,7 @@ let host = "jichan.org"; in {
|
|
|
|
# Formerly tatoeba.elnu.com
|
|
|
|
# Formerly tatoeba.elnu.com
|
|
|
|
# https://git.elnu.com/ElnuDev/tatoeba-api
|
|
|
|
# https://git.elnu.com/ElnuDev/tatoeba-api
|
|
|
|
"/api/tatoeba/" = {
|
|
|
|
"/api/tatoeba/" = {
|
|
|
|
proxyPass = "http://${elnuhub}:3001";
|
|
|
|
proxyPass = "http://elnuhub:3001";
|
|
|
|
extraConfig = ''
|
|
|
|
extraConfig = ''
|
|
|
|
rewrite ^/api/tatoeba/(.*) /$1 break;
|
|
|
|
rewrite ^/api/tatoeba/(.*) /$1 break;
|
|
|
|
'';
|
|
|
|
'';
|
|
|
@ -29,7 +28,7 @@ let host = "jichan.org"; in {
|
|
|
|
# Formerly images.elnu.com
|
|
|
|
# Formerly images.elnu.com
|
|
|
|
# https://git.elnu.com/ElnuDev/image-api
|
|
|
|
# https://git.elnu.com/ElnuDev/image-api
|
|
|
|
"/api/images/" = {
|
|
|
|
"/api/images/" = {
|
|
|
|
proxyPass = "http://${elnuhub}:3002";
|
|
|
|
proxyPass = "http://elnuhub:3002";
|
|
|
|
extraConfig = ''
|
|
|
|
extraConfig = ''
|
|
|
|
rewrite ^/api/images/(.*) /$1 break;
|
|
|
|
rewrite ^/api/images/(.*) /$1 break;
|
|
|
|
'';
|
|
|
|
'';
|
|
|
|