coder: syntax error
This commit is contained in:
parent
62c041bb32
commit
860ebb0fdd
1 changed files with 3 additions and 2 deletions
|
|
@ -7,16 +7,17 @@
|
||||||
inherit (config.niksos) server;
|
inherit (config.niksos) server;
|
||||||
port = 9005;
|
port = 9005;
|
||||||
host = "coder.jsw.tf";
|
host = "coder.jsw.tf";
|
||||||
|
sPort = builtins.toString port;
|
||||||
httpsHost = "https://" + host;
|
httpsHost = "https://" + host;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf server {
|
config = lib.mkIf server {
|
||||||
services = {
|
services = {
|
||||||
caddy.virtualHosts."${host}".extraConfig = ''
|
caddy.virtualHosts."${host}".extraConfig = ''
|
||||||
reverse_proxy :${port}
|
reverse_proxy :${sPort}
|
||||||
'';
|
'';
|
||||||
coder = {
|
coder = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listenAddress = "127.0.0.1:${port}";
|
listenAddress = "127.0.0.1:${sPort}";
|
||||||
wildcardAccessUrl = "*.${host}";
|
wildcardAccessUrl = "*.${host}";
|
||||||
accessUrl = httpsHost;
|
accessUrl = httpsHost;
|
||||||
environment = {
|
environment = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue