Hello, im new to NixOS and tried to set up a Ngynx server for testing web programs.
i found some basic infos in the nixos wiki, but it says “403 Forbidden”.
here is my configuration.nix related to Ngynx:
nixpkgs.overlays = [
(final: super: {
nginxStable = super.nginxStable.override {openssl = super.pkgs.libressl;};
})
];
services.nginx.package = pkgs.nginxStable.override {openssl = pkgs.libressl;};
services.nginx.enable = true;
services.nginx.virtualHosts."kronos" = {
addSSL = true;
enableACME = false;##
root = "/var/www/kronos";
};
##security.acme = {
## acceptTerms = true;
## defaults.email = "rotkatzeirgendwas@protonmail.com";
##};
services.nginx.virtualHosts.kronos.sslCertificate = "";
List of Installed Packages (Everything i installed)
- pkgs.vim
- pkgs.wget
- pkgs.kotatogram-desktop
- pkgs.neovim
- pkgs.libvirt
- pkgs.qemu
- pkgs.zsh
- pkgs.git
- pkgs.nodejs
- pkgs.htop
- pkgs.alacritty
- pkgs.libreoffice
- pkgs.mariadb_110
- pkgs.signal-desktop
The Web address i want to use for viewing my web stuff is https://localhost/
, so i dont need port forwarding or that its accessable for other devices.
if possible, i would like to not use some advanced setups or home manager
.
would be very happy about awnsers.