Skip to content

Instantly share code, notes, and snippets.

@domenkozar
Created October 7, 2014 09:04
Show Gist options
  • Save domenkozar/67760a38d8dc1a1c301a to your computer and use it in GitHub Desktop.
Save domenkozar/67760a38d8dc1a1c301a to your computer and use it in GitHub Desktop.
services.redmine = {
enable = true;
databasePassword = "123456";
themes = {
circle = pkgs.fetchurl {
url = "http://www.redminecrm.com/license_manager/11619/circle_theme-1_0_2.zip";
md5 = "2cfc2e534dc57e8ce9475103ce087618";
};
};
plugins = {
redmine_custom_css = pkgs.fetchurl {
url = "https://github.com/martin-denizet/redmine_custom_css/archive/0.1.4.tar.gz";
md5 = "d1a9defe8d9d1732b98318c189570de6";
};
redmine_improved_searchbox = pkgs.fetchgit {
# url = "https://github.com/ries-tech/redmine_improved_searchbox/archive/0.0.3.tar.gz";
url = "https://github.com/iElectric/redmine_improved_searchbox.git";
rev = "edbd5b8f4aea78d45974510e8e4b666675ac729a";
md5 = "f0a9ab9b93e346078f28e268f640f38c";
};
sidebar_hide = pkgs.fetchurl {
url = "https://github.com/bdemirkir/sidebar_hide/archive/0.0.7.tar.gz";
md5 = "84e1a2ef39122b8f33fa1f6ba75bb4a0";
};
clipboard_image_paste = pkgs.fetchurl {
url = "https://github.com/peclik/clipboard_image_paste/archive/v1.8.tar.gz";
md5 = "703cd7c0d69e7024281194c28e75d65c";
};
};
};
services.nginx.enable = true;
services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql93;
services.nginx.httpConfig = ''
server {
server_name example.com;
root /var/redmine;
location / {
try_files $uri @redmine;
}
location @redmine {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_read_timeout 300;
proxy_pass http://127.0.0.1:3000;
}
}
'';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment