Redmine: Difference between revisions

From NixOS Wiki
imported>Vater
mNo edit summary
imported>Vater
Line 36: Line 36:
#  services.nginx.recommendedGzipSettings = true;
#  services.nginx.recommendedGzipSettings = true;


  services.nginx.recommendedProxySettings = true;
# services.nginx.recommendedProxySettings = true;
   services.nginx.virtualHosts."${config.networking.fqdn}" = {
   services.nginx.virtualHosts."${config.networking.fqdn}" = {
     locations."/" = {
     locations."/" = {
Line 44: Line 44:
     enableACME = true;
     enableACME = true;
   };
   };
  services.nginx.recommendedTlsSettings = true;
# services.nginx.recommendedTlsSettings = true;
   security.acme.defaults.email = "acme@${config.networking.domain}";
   security.acme.defaults.email = "acme@${config.networking.domain}";
   security.acme.acceptTerms = true;
   security.acme.acceptTerms = true;
Line 50: Line 50:
#  networking.firewall.allowedTCPPorts = [ 80 443 3000 ];
#  networking.firewall.allowedTCPPorts = [ 80 443 3000 ];
   networking.firewall.allowedTCPPorts = [ 80 443 ];
   networking.firewall.allowedTCPPorts = [ 80 443 ];
# networking.firewall.allowedTCPPorts = [ 443 ];
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">

Revision as of 17:51, 5 November 2022

Redmine (wikipedia:en:Redmine) is available as a module.

configuration examples

minimal configuration

# system.stateVersion = "22.05";

  services.redmine.enable = true;

  networking.firewall.allowedTCPPorts = [ 3000 ];
unencrypted http (only)

http://hostName.domain.tld:3000

basic configuration

# system.stateVersion = "22.05";

# networking.hostName = "redmine";
# networking.domain = "domain.tld";

  services.redmine.enable = true;

  services.nginx.enable = true;
# services.nginx.recommendedOptimisation = true;
#  services.nginx.recommendedGzipSettings = true;

# services.nginx.recommendedProxySettings = true;
  services.nginx.virtualHosts."${config.networking.fqdn}" = {
    locations."/" = {
      proxyPass = "http://127.0.0.1:3000";
    };
    forceSSL = true;
    enableACME = true;
  };
# services.nginx.recommendedTlsSettings = true;
  security.acme.defaults.email = "acme@${config.networking.domain}";
  security.acme.acceptTerms = true;

#  networking.firewall.allowedTCPPorts = [ 80 443 3000 ];
  networking.firewall.allowedTCPPorts = [ 80 443 ];

https://redmine.domain.tld

login

https://redmine.domain.tld/login

Login
admin
Password
admin
Login