Update
This commit is contained in:
parent
2656132158
commit
562dad765b
@ -1,46 +1,12 @@
|
|||||||
# { pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
# environment.systemPackages = with pkgs; [ cloudflared ];
|
environment.systemPackages = with pkgs; [ cloudflared ];
|
||||||
# services.cloudflared = {
|
services.cloudflared = {
|
||||||
# enable = true;
|
|
||||||
# tunnels = {
|
|
||||||
# "55ac0504-4ba0-4ea7-bf38-6d04ca7e45c3" = {
|
|
||||||
# credentialsFile = "/etc/cloudflaredpwd";
|
|
||||||
# default = "http_status:404";
|
|
||||||
# ingress = { };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.nextcloud = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "localhost";
|
tunnels = {
|
||||||
https = false;
|
"55ac0504-4ba0-4ea7-bf38-6d04ca7e45c3" = {
|
||||||
config = {
|
credentialsFile = "/etc/cloudflaredpwd";
|
||||||
dbtype = "sqlite";
|
default = "http_status:404";
|
||||||
adminuser = "admin";
|
ingress = { };
|
||||||
adminpass = "TESTADMINPASSWORD";
|
|
||||||
datadirectory = "/var/lib/nextcloud/data";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.postgresql.enable = true;
|
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
virtualHosts."localhost" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = false;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://127.0.0.1:8080";
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user