Migrate to traefik and rename i18n to translate

This commit is contained in:
Livvy Mackintosh
2017-10-08 22:24:18 +02:00
parent 049ca29e77
commit 7adc91b8b4
2 changed files with 114 additions and 57 deletions

View File

@ -40,29 +40,29 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name forum.ojuso.org;
ssl_certificate /web/certs/forum.ojuso.org/fullchain.pem;
ssl_certificate_key /web/certs/forum.ojuso.org/privkey.pem;
ssl_dhparam /web/certs/dhparam.pem;
ssl_trusted_certificate /web/certs/map.ojuso.org/chain.pem;
include directives/*;
http2_idle_timeout 5m;
location / {
proxy_pass http://unix:/web/run/discourse.sock:;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}
#server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# server_name forum.ojuso.org;
#
# ssl_certificate /web/certs/forum.ojuso.org/fullchain.pem;
# ssl_certificate_key /web/certs/forum.ojuso.org/privkey.pem;
# ssl_dhparam /web/certs/dhparam.pem;
# ssl_trusted_certificate /web/certs/map.ojuso.org/chain.pem;
#
# include directives/*;
#
# http2_idle_timeout 5m;
#
# location / {
# proxy_pass http://unix:/web/run/discourse.sock:;
# proxy_set_header Host $http_host;
# proxy_http_version 1.1;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto https;
# }
#
#}
server {
listen 443 ssl http2;
@ -78,6 +78,26 @@ server {
http2_idle_timeout 5m;
location / {
return 301 https://translate.ojuso.org$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name translate.ojuso.org;
ssl_certificate /web/certs/translate.ojuso.org/fullchain.pem;
ssl_certificate_key /web/certs/translate.ojuso.org/privkey.pem;
ssl_dhparam /web/certs/dhparam.pem;
ssl_trusted_certificate /web/certs/translate.ojuso.org/chain.pem;
include directives/*;
http2_idle_timeout 5m;
root /web/weblate/data/static;
location /favicon.ico {