Refactor local Nginx virtual hosts and update
...local hostnames
This commit is contained in:
parent
8e599c2ffd
commit
db4cfbc518
7 changed files with 49 additions and 18 deletions
|
@ -4,14 +4,14 @@
|
|||
services.audiobookshelf = {
|
||||
enable = true;
|
||||
|
||||
host = "audiobookshelf.localhost";
|
||||
host = "audiobookshelf.davies.home";
|
||||
port = 4001;
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts."audiobookshelf.localhost" = {
|
||||
virtualHosts."audiobookshelf.davies.home" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.audiobookshelf.port}/";
|
||||
proxyWebsockets = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue