Skip to content

Commit 4787c74

Browse files
committed
Add dynamic shortlinks config with moban
Closes #4
1 parent 9ce9079 commit 4787c74

File tree

8 files changed

+518
-65
lines changed

8 files changed

+518
-65
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.secrets
22
*.tmplc
33
rultor_github_secrets.sh
4+
.moban.hashes

.moban.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
configuration:
2+
template_dir:
3+
- templates
4+
configuration: devops.yml
5+
targets:
6+
- "nginx/nginx.conf.d/coala.io.conf": "coala.io.conf"
7+
- "nginx/webroot/links/index.html": "links.html"

devops.yml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
shortlinks:
2+
- name: newcomer
3+
url: https://api.coala.io/en/latest/Developers/Newcomers_Guide.html
4+
- name: newcomers
5+
url: https://api.coala.io/en/latest/Developers/Newcomers_Guide.html
6+
- name: new
7+
url: "https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%\
8+
3Acoala+label%3Adifficulty%2Fnewcomer+-label%3Ainitiatives%2Fgci+no%3\
9+
Aassignee"
10+
- name: low
11+
url: "https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%\
12+
3Acoala+label%3Adifficulty%2Flow++no%3Aassignee"
13+
- name: medium
14+
url: "https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%\
15+
3Acoala+label%3Adifficulty%2Fmedium+no%3Aassignee"
16+
- name: review
17+
url: "https://github.com/pulls?q=is%3Aopen+user%3Acoala+label%3A%22process%2\
18+
Fpending+review%22+sort%3Acreated-asc"
19+
- name: greview
20+
url: https://gitlab.com/groups/coala/merge_requests
21+
- name: approved
22+
url: "https://github.com/pulls?q=is%3Aopen+user%3Acoala+label%3A%22process%2\
23+
Fapproved%22+sort%3Acreated-asc"
24+
- name: reviewing
25+
url: https://api.coala.io/en/latest/Developers/Review.html
26+
- name: languages
27+
url: https://coala.io/#!/languages
28+
- name: chat
29+
url: https://gitter.im/coala-analyzer/coala
30+
- name: git
31+
url: https://api.coala.io/en/latest/Developers/Git_Basics.html
32+
- name: rebase
33+
url: https://coala.io/git#rebasing
34+
- name: commit
35+
url: https://api.coala.io/en/latest/Developers/Writing_Good_Commits.html
36+
- name: cep
37+
url: https://github.com/coala/cEPs/blob/master/cEP-0000.md
38+
- name: cep1
39+
url: https://github.com/coala/cEPs/blob/master/cEP-0001.md
40+
- name: cep2
41+
url: https://github.com/coala/cEPs/blob/master/cEP-0002.md
42+
- name: cep3
43+
url: https://github.com/coala/cEPs/blob/master/cEP-0003.md
44+
- name: cep5
45+
url: https://github.com/coala/cEPs/blob/master/cEP-0005.md
46+
- name: cep6
47+
url: https://github.com/coala/cEPs/blob/master/cEP-0006.md
48+
- name: cep9
49+
url: https://github.com/coala/cEPs/blob/master/cEP-0009.md
50+
- name: cep10
51+
url: https://github.com/coala/cEPs/blob/master/cEP-0010.md
52+
- name: cep12
53+
url: https://github.com/coala/cEPs/blob/master/cEP-0012.md
54+
- name: cep14
55+
url: https://github.com/coala/cEPs/blob/master/cEP-0014.md
56+
- name: coc
57+
url: https://github.com/coala/cEPs/blob/master/cEP-0006.md
58+
- name: tutorial
59+
url: https://docs.coala.io/en/latest/Users/Tutorial.html
60+
- name: writingbears
61+
url: https://api.coala.io/en/latest/Developers/Writing_Native_Bears.html
62+
- name: channels
63+
url: https://github.com/coala/coala/wiki/Communication-Channels
64+
- name: newform
65+
url: "https://docs.google.com/forms/d/e/1FAIpQLSd7g_MU_c-BMQ62WHeznrvcoXwqW\
66+
87O_Wq4Gz7-pp8PJ38Wdg/viewform"
67+
- name: projects
68+
url: https://github.com/coala/coala/wiki/Project-Ideas
69+
- name: reviewsprint
70+
url: "https://docs.google.com/forms/d/e/1FAIpQLSd4vHafTyY4RW--fOyIVecBM0WKN\
71+
EeF-RyFvUn83jCF9ou2tg/viewform"
72+
- name: reply
73+
url: https://github.com/coala/coala/wiki/Reply-Templates
74+
- name: linespots
75+
url: https://gitlab.com/sims1253/Linespots
76+
- name: usability
77+
url: "https://docs.google.com/forms/d/e/1FAIpQLSe9lZxuYEKlvxXzQUOTwrre3CQMN\
78+
sks7eOzEl49_2q5vlDl0w/viewform"
79+
- name: starwars
80+
url: https://www.youtube.com/watch?v=JWVCMjKU_10
81+
- name: docs
82+
url: https://docs.coala.io
83+
- name: api
84+
url: https://api.coala.io
85+
- name: viperform
86+
url: "https://docs.google.com/forms/d/e/1FAIpQLSdtdIF5CLnO2erAc41yLRoEvUMXy\
87+
t3ZWUOVJ5LSqpwZEYF03A/viewform"
88+
- name: romania
89+
url: "https://www.bigmarker.com/remote-meetup/Open-Source-and-Google-Summer\
90+
-of-Code-8-Gorgeous-Short-Presentations"
91+
- name: thesis
92+
url: https://github.com/coala/coala/wiki/Writing-a-Thesis-with-coala
93+
- name: install
94+
url: https://docs.coala.io/en/latest/Users/Install.html
95+
- name: comania
96+
url: https://github.com/coala/coala/wiki/Hackathon-comania
97+
- name: pizza
98+
url: "https://docs.google.com/forms/d/e/1FAIpQLSdt_zc_bgAE6vqTypSBnWk240AEn\
99+
hCE7NBmpU1nLnFBuaivqA/viewform"
100+
- name: help
101+
url: https://api.coala.io/en/latest/Developers/coala_settings.html
102+
- name: devsetup
103+
url: https://api.coala.io/en/latest/Developers/Development_Setup.html
104+
- name: community_issues
105+
url: "https://github.com/pulls?q=is:open+user:coala+label:\"community_team\
106+
\"+sort:created-asc"
107+
- name: fosdem2017
108+
url: https://eepurl.com/cABthT
109+
- name: gitmate
110+
url: https://coala.io/#/gitmate
111+
- name: csoc
112+
url: "https://docs.google.com/forms/d/e/1FAIpQLSeR8WKkZA1R0gBDjJqfeI96jgHe9\
113+
mt8zmAVm1YtB5FpJFD9gQ/viewform?usp=sf_link"
114+
- name: recipes
115+
url: https://github.com/coala/recipes
116+
- name: autocontrib
117+
url: "https://docs.google.com/presentation/d/1fYx1aiSSj_w1vw017tBYfSGbfgl38\
118+
sMWg3qlhvimYu8/edit?usp=sharing"
119+
- name: exterminate
120+
url: https://github.com/adtac/exterminate/
121+
- name: exterminatep
122+
url: "https://docs.google.com/presentation/d/1qJpXMgA8_WJNO3eUV_ueNiU8w_1fT\
123+
ethNvEuU2XHnWs/edit?usp=sharing"
124+
- name: feedback
125+
url: https://goo.gl/DcTPbn

nginx/nginx.conf.d/coala.io.conf

Lines changed: 58 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,70 @@
11
server {
22
listen 443 ssl;
33
server_name coala.io www.coala.io;
4-
4+
55
location / {
66
proxy_pass http://192.30.252.153;
77
proxy_set_header Host coala.io;
88
proxy_set_header X-Real-IP $remote_addr;
99
proxy_intercept_errors on;
1010
}
1111

12-
# URL shortener
13-
location /newcomer { return 302 http://api.coala.io/en/latest/Developers/Newcomers_Guide.html; }
14-
location /newcomers { return 302 http://api.coala.io/en/latest/Developers/Newcomers_Guide.html; }
15-
location /new { return 302 https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Acoala+label%3Adifficulty%2Fnewcomer+-label%3Ainitiatives%2Fgci+no%3Aassignee; }
16-
location /low { return 302 https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Acoala+label%3Adifficulty%2Flow++no%3Aassignee; }
17-
location /medium { return 302 https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Acoala+label%3Adifficulty%2Fmedium+no%3Aassignee; }
18-
location /review { return 302 https://github.com/pulls?q=is%3Aopen+user%3Acoala+label%3A%22process%2Fpending+review%22+sort%3Acreated-asc; }
19-
location /greview { return 302 https://gitlab.com/groups/coala/merge_requests; }
20-
location /approved { return 302 https://github.com/pulls?q=is%3Aopen+user%3Acoala+label%3A%22process%2Fapproved%22+sort%3Acreated-asc; }
21-
location /reviewing { return 302 http://api.coala.io/en/latest/Developers/Review.html; }
22-
location /languages { return 302 http://coala.io/#!/languages; }
23-
location /chat { return 302 https://gitter.im/coala-analyzer/coala; }
24-
location /git { return 302 http://api.coala.io/en/latest/Developers/Git_Basics.html; }
25-
location /rebase { return 302 https://coala.io/git#rebasing; }
26-
location /commit { return 302 http://api.coala.io/en/latest/Developers/Writing_Good_Commits.html; }
27-
location /cep { return 302 https://github.com/coala/cEPs/blob/master/cEP-0000.md; }
28-
location /cep1 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0001.md; }
29-
location /cep2 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0002.md; }
30-
location /cep3 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0003.md; }
31-
location /cep5 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0005.md; }
32-
location /cep6 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0006.md; }
33-
location /cep9 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0009.md; }
34-
location /cep10 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0010.md; }
35-
location /cep12 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0012.md; }
36-
location /cep13 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0013.md; }
37-
location /cep14 { return 302 https://github.com/coala/cEPs/blob/master/cEP-0014.md; }
38-
location /coc { return 302 https://github.com/coala/cEPs/blob/master/cEP-0006.md; }
39-
location /tutorial { return 302 https://docs.coala.io/en/latest/Users/Tutorial.html; }
40-
location /writingbears { return 302 https://api.coala.io/en/latest/Developers/Writing_Native_Bears.html; }
41-
location /channels { return 302 https://github.com/coala/coala/wiki/Communication-Channels; }
42-
location /newform { return 302 https://docs.google.com/forms/d/e/1FAIpQLSd7g_MU_c-BMQ62WHeznrvcoXwqW87O_Wq4Gz7-pp8PJ38Wdg/viewform; }
43-
location /projects { return 302 https://github.com/coala/coala/wiki/Project-Ideas; }
44-
location /reviewsprint { return 302 https://docs.google.com/forms/d/e/1FAIpQLSd4vHafTyY4RW--fOyIVecBM0WKNEeF-RyFvUn83jCF9ou2tg/viewform; }
45-
location /reply { return 302 https://github.com/coala/coala/wiki/Reply-Templates; }
46-
location /linespots { return 302 https://gitlab.com/sims1253/Linespots; }
47-
location /usability { return 302 https://docs.google.com/forms/d/e/1FAIpQLSe9lZxuYEKlvxXzQUOTwrre3CQMNsks7eOzEl49_2q5vlDl0w/viewform; }
48-
location /starwars { return 302 https://www.youtube.com/watch?v=JWVCMjKU_10; }
49-
location /docs { return 302 https://docs.coala.io/; }
50-
location /api { return 302 https://api.coala.io/; }
51-
location /viperform { return 302 https://docs.google.com/forms/d/e/1FAIpQLSdtdIF5CLnO2erAc41yLRoEvUMXyt3ZWUOVJ5LSqpwZEYF03A/viewform; }
52-
location /romania { return 302 https://www.bigmarker.com/remote-meetup/Open-Source-and-Google-Summer-of-Code-8-Gorgeous-Short-Presentations; }
53-
location /thesis { return 302 https://github.com/coala/coala/wiki/Writing-a-Thesis-with-coala; }
54-
location /install { return 302 http://docs.coala.io/en/latest/Users/Install.html; }
55-
location /comania { return 302 https://github.com/coala/coala/wiki/Hackathon-comania; }
56-
location /pizza { return 302 https://docs.google.com/forms/d/e/1FAIpQLSdt_zc_bgAE6vqTypSBnWk240AEnhCE7NBmpU1nLnFBuaivqA/viewform; }
57-
location /help { return 302 http://api.coala.io/en/latest/Developers/coala_settings.html; }
58-
location /devsetup { return 302 https://api.coala.io/en/latest/Developers/Development_Setup.html; }
59-
location /community_issues { return 302 https://github.com/pulls?q=is:open+user:coala+label:"community_team"+sort:created-asc; }
60-
location /fosdem2017 { return 302 http://eepurl.com/cABthT; }
61-
location /gitmate { return 302 https://coala.io/#/gitmate; }
62-
location /nginx.txt { return 302 coala.io.conf; }
63-
location /links { return 302 coala.io.conf; }
64-
location /csoc { return 302 https://docs.google.com/forms/d/e/1FAIpQLSeR8WKkZA1R0gBDjJqfeI96jgHe9mt8zmAVm1YtB5FpJFD9gQ/viewform?usp=sf_link; }
65-
location /recipes { return 302 https://github.com/coala/recipes; }
66-
67-
location /autocontrib { return 302 https://docs.google.com/presentation/d/1fYx1aiSSj_w1vw017tBYfSGbfgl38sMWg3qlhvimYu8/edit?usp=sharing; }
68-
location /exterminate { return 302 https://github.com/adtac/exterminate/; }
69-
location /exterminatep { return 302 https://docs.google.com/presentation/d/1qJpXMgA8_WJNO3eUV_ueNiU8w_1fTethNvEuU2XHnWs/edit?usp=sharing; }
70-
71-
location /feedback { return 302 https://goo.gl/DcTPbn; }
72-
73-
location /coala.io.conf {
74-
add_header Content-Type text/plain;
75-
root /etc/nginx/conf.d;
12+
location /links {
13+
root /usr/share/nginx/html;
7614
}
15+
16+
location /newcomer { return 301 https://api.coala.io/en/latest/Developers/Newcomers_Guide.html; }
17+
location /newcomers { return 301 https://api.coala.io/en/latest/Developers/Newcomers_Guide.html; }
18+
location /new { return 301 https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Acoala+label%3Adifficulty%2Fnewcomer+-label%3Ainitiatives%2Fgci+no%3Aassignee; }
19+
location /low { return 301 https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Acoala+label%3Adifficulty%2Flow++no%3Aassignee; }
20+
location /medium { return 301 https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Acoala+label%3Adifficulty%2Fmedium+no%3Aassignee; }
21+
location /review { return 301 https://github.com/pulls?q=is%3Aopen+user%3Acoala+label%3A%22process%2Fpending+review%22+sort%3Acreated-asc; }
22+
location /greview { return 301 https://gitlab.com/groups/coala/merge_requests; }
23+
location /approved { return 301 https://github.com/pulls?q=is%3Aopen+user%3Acoala+label%3A%22process%2Fapproved%22+sort%3Acreated-asc; }
24+
location /reviewing { return 301 https://api.coala.io/en/latest/Developers/Review.html; }
25+
location /languages { return 301 https://coala.io/#!/languages; }
26+
location /chat { return 301 https://gitter.im/coala-analyzer/coala; }
27+
location /git { return 301 https://api.coala.io/en/latest/Developers/Git_Basics.html; }
28+
location /rebase { return 301 https://coala.io/git#rebasing; }
29+
location /commit { return 301 https://api.coala.io/en/latest/Developers/Writing_Good_Commits.html; }
30+
location /cep { return 301 https://github.com/coala/cEPs/blob/master/cEP-0000.md; }
31+
location /cep1 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0001.md; }
32+
location /cep2 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0002.md; }
33+
location /cep3 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0003.md; }
34+
location /cep5 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0005.md; }
35+
location /cep6 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0006.md; }
36+
location /cep9 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0009.md; }
37+
location /cep10 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0010.md; }
38+
location /cep12 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0012.md; }
39+
location /cep14 { return 301 https://github.com/coala/cEPs/blob/master/cEP-0014.md; }
40+
location /coc { return 301 https://github.com/coala/cEPs/blob/master/cEP-0006.md; }
41+
location /tutorial { return 301 https://docs.coala.io/en/latest/Users/Tutorial.html; }
42+
location /writingbears { return 301 https://api.coala.io/en/latest/Developers/Writing_Native_Bears.html; }
43+
location /channels { return 301 https://github.com/coala/coala/wiki/Communication-Channels; }
44+
location /newform { return 301 https://docs.google.com/forms/d/e/1FAIpQLSd7g_MU_c-BMQ62WHeznrvcoXwqW87O_Wq4Gz7-pp8PJ38Wdg/viewform; }
45+
location /projects { return 301 https://github.com/coala/coala/wiki/Project-Ideas; }
46+
location /reviewsprint { return 301 https://docs.google.com/forms/d/e/1FAIpQLSd4vHafTyY4RW--fOyIVecBM0WKNEeF-RyFvUn83jCF9ou2tg/viewform; }
47+
location /reply { return 301 https://github.com/coala/coala/wiki/Reply-Templates; }
48+
location /linespots { return 301 https://gitlab.com/sims1253/Linespots; }
49+
location /usability { return 301 https://docs.google.com/forms/d/e/1FAIpQLSe9lZxuYEKlvxXzQUOTwrre3CQMNsks7eOzEl49_2q5vlDl0w/viewform; }
50+
location /starwars { return 301 https://www.youtube.com/watch?v=JWVCMjKU_10; }
51+
location /docs { return 301 https://docs.coala.io; }
52+
location /api { return 301 https://api.coala.io; }
53+
location /viperform { return 301 https://docs.google.com/forms/d/e/1FAIpQLSdtdIF5CLnO2erAc41yLRoEvUMXyt3ZWUOVJ5LSqpwZEYF03A/viewform; }
54+
location /romania { return 301 https://www.bigmarker.com/remote-meetup/Open-Source-and-Google-Summer-of-Code-8-Gorgeous-Short-Presentations; }
55+
location /thesis { return 301 https://github.com/coala/coala/wiki/Writing-a-Thesis-with-coala; }
56+
location /install { return 301 https://docs.coala.io/en/latest/Users/Install.html; }
57+
location /comania { return 301 https://github.com/coala/coala/wiki/Hackathon-comania; }
58+
location /pizza { return 301 https://docs.google.com/forms/d/e/1FAIpQLSdt_zc_bgAE6vqTypSBnWk240AEnhCE7NBmpU1nLnFBuaivqA/viewform; }
59+
location /help { return 301 https://api.coala.io/en/latest/Developers/coala_settings.html; }
60+
location /devsetup { return 301 https://api.coala.io/en/latest/Developers/Development_Setup.html; }
61+
location /community_issues { return 301 https://github.com/pulls?q=is:open+user:coala+label:"community_team"+sort:created-asc; }
62+
location /fosdem2017 { return 301 https://eepurl.com/cABthT; }
63+
location /gitmate { return 301 https://coala.io/#/gitmate; }
64+
location /csoc { return 301 https://docs.google.com/forms/d/e/1FAIpQLSeR8WKkZA1R0gBDjJqfeI96jgHe9mt8zmAVm1YtB5FpJFD9gQ/viewform?usp=sf_link; }
65+
location /recipes { return 301 https://github.com/coala/recipes; }
66+
location /autocontrib { return 301 https://docs.google.com/presentation/d/1fYx1aiSSj_w1vw017tBYfSGbfgl38sMWg3qlhvimYu8/edit?usp=sharing; }
67+
location /exterminate { return 301 https://github.com/adtac/exterminate/; }
68+
location /exterminatep { return 301 https://docs.google.com/presentation/d/1qJpXMgA8_WJNO3eUV_ueNiU8w_1fTethNvEuU2XHnWs/edit?usp=sharing; }
69+
location /feedback { return 301 https://goo.gl/DcTPbn; }
7770
}

0 commit comments

Comments
 (0)