19 lines
435 B
Python
19 lines
435 B
Python
# -*- mode: python; encoding: utf-8 -*-
|
|
|
|
info["owner"] = "root"
|
|
info["group"] = "root"
|
|
info["mode"] = 0644
|
|
|
|
comment_start = "#"
|
|
|
|
out("""server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
listen 443;
|
|
listen [::]:443;
|
|
server_name tracker tracker.crans.org;
|
|
|
|
return 301 https://phabricator.crans.org$request_uri;
|
|
# On spécifie au client qu'il ne doit pas faire de HTTP ici
|
|
add_header Strict-Transport-Security "max-age=31536000";
|
|
}""")
|