{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/23672","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/23672/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/23672/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/23672/events","html_url":"https://github.com/NixOS/nixpkgs/pull/23672","id":213119257,"number":23672,"title":"Nginx alias","user":{"login":"edanaher","id":984691,"avatar_url":"https://avatars2.githubusercontent.com/u/984691?v=3","gravatar_id":"","url":"https://api.github.com/users/edanaher","html_url":"https://github.com/edanaher","followers_url":"https://api.github.com/users/edanaher/followers","following_url":"https://api.github.com/users/edanaher/following{/other_user}","gists_url":"https://api.github.com/users/edanaher/gists{/gist_id}","starred_url":"https://api.github.com/users/edanaher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edanaher/subscriptions","organizations_url":"https://api.github.com/users/edanaher/orgs","repos_url":"https://api.github.com/users/edanaher/repos","events_url":"https://api.github.com/users/edanaher/events{/privacy}","received_events_url":"https://api.github.com/users/edanaher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-09T18:06:51Z","updated_at":"2017-03-09T18:06:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/23672","html_url":"https://github.com/NixOS/nixpkgs/pull/23672","diff_url":"https://github.com/NixOS/nixpkgs/pull/23672.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/23672.patch"},"body":"###### Motivation for this change\r\n\r\nWhile it's easy enough to add extraConfig = \"alias = ${alias};\", why not make it even easier?\r\n\r\nFor example, I'm using this to serve a robots.txt straight from pkgs.writeText; that's a really neat trick.  With the \"root\" directive, this doesn't work because nginx will look for ${robots.txt}/robots.txt; with alias, it serves the file path with no modification.\r\n\r\n###### Things done\r\n\r\n- [x] Tested using sandboxing\r\n  ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS,\r\n    or option `build-use-sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file)\r\n    on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] macOS\r\n   - [ ] Linux\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [x] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n\r\n---\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/285431491","html_url":"https://github.com/NixOS/nixpkgs/pull/23672#issuecomment-285431491","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/23672","id":285431491,"user":{"login":"mention-bot","id":15710697,"avatar_url":"https://avatars2.githubusercontent.com/u/15710697?v=3","gravatar_id":"","url":"https://api.github.com/users/mention-bot","html_url":"https://github.com/mention-bot","followers_url":"https://api.github.com/users/mention-bot/followers","following_url":"https://api.github.com/users/mention-bot/following{/other_user}","gists_url":"https://api.github.com/users/mention-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mention-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mention-bot/subscriptions","organizations_url":"https://api.github.com/users/mention-bot/orgs","repos_url":"https://api.github.com/users/mention-bot/repos","events_url":"https://api.github.com/users/mention-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mention-bot/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T18:06:53Z","updated_at":"2017-03-09T18:06:53Z","body":"@edanaher, thanks for your PR! By analyzing the history of the files in this pull request, we identified @globin, @domenkozar and @fadenb to be potential reviewers."}}
{"actor":{"display_login":"mention-bot"}}