Change gitea location to the root of the domain
This commit is contained in:
parent
49f06353be
commit
8f3d1b38db
|
@ -8,8 +8,8 @@
|
||||||
# Gitea setup with daily backup
|
# Gitea setup with daily backup
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "https://coolneng.duckdns.org";
|
domain = "coolneng.duckdns.org";
|
||||||
rootUrl = "https://coolneng.duckdns.org/gitea";
|
rootUrl = "https://coolneng.duckdns.org/";
|
||||||
database = {
|
database = {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
passwordFile = "/var/keys/gitea/db";
|
passwordFile = "/var/keys/gitea/db";
|
||||||
|
|
|
@ -64,28 +64,14 @@
|
||||||
locations."/syncthing/" = {
|
locations."/syncthing/" = {
|
||||||
proxyPass = "http://localhost:8384/";
|
proxyPass = "http://localhost:8384/";
|
||||||
};
|
};
|
||||||
locations."/gitea/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:3000/";
|
proxyPass = "http://localhost:3000/";
|
||||||
};
|
};
|
||||||
locations."/miniflux/" = {
|
locations."/miniflux/" = {
|
||||||
proxyPass = "http://localhost:8080/miniflux/";
|
proxyPass = "http://localhost:8080/miniflux/";
|
||||||
};
|
};
|
||||||
locations."/wallabag/" = {
|
locations."/wallabag/" = {
|
||||||
root = "/var/lib/wallabag/web";
|
proxyPass = "http://localhost:8081/";
|
||||||
tryFiles = "try_files $uri /app.php$is_args$args";
|
|
||||||
extraConfig = ''
|
|
||||||
location ~ ^/app\.php(/|$) {
|
|
||||||
fastcgi_pass unix:/var/run/php-fpm.sock;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
||||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
||||||
internal;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue