Skip to content

Commit 143b3c5

Browse files
committed
update inpycon 2018 site, and make that default
1 parent 313247b commit 143b3c5

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

salt/roots/inpycon/in.pycon2017.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ location ~ ^/2017/(.*)$ {
22
alias /opt/inpycon2017/$1;
33
}
44

5-
location = / {
6-
rewrite "^.*$" /2017/ redirect;
7-
}
8-
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
location ~ ^/2018/(.*)$ {
2+
alias /opt/inpycon2018/$1;
3+
}
4+
5+
location = / {
6+
rewrite "^.*$" /2018/ redirect;
7+
}

salt/roots/inpycon/init.sls

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ https://github.com/pythonindia/inpycon2017.git:
1818
- rev: master
1919
- target: /opt/inpycon2017
2020

21+
https://github.com/pythonindia/inpycon2018.git:
22+
git.latest:
23+
- rev: master
24+
- target: /opt/inpycon2018
25+
2126
https://github.com/pythonindia/pyconindia-archive.git:
2227
git.latest:
2328
- rev: 72613218a3ad7123da3804e3df0c19f01c0a684b
@@ -63,6 +68,12 @@ nginx_inpycon_dir:
6368
- require:
6469
- file: nginx_inpycon_dir
6570

71+
/etc/nginx/sites-available/in.pycon.org/pycon2018.conf:
72+
file.managed:
73+
- source: salt://inpycon/in.pycon2018.conf
74+
- require:
75+
- file: nginx_inpycon_dir
76+
6677
/etc/nginx/sites-available/in.pycon.org/old-pycon.conf:
6778
file.managed:
6879
- source: salt://inpycon/old-pycon.conf

0 commit comments

Comments
 (0)