Skip to content
Snippets Groups Projects
Commit c8fb7904 authored by Gallenkamp, Fabian's avatar Gallenkamp, Fabian
Browse files

added favicon, changed default behaviour on unavailable otree instance

parent 714349ae
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ home_path: "/home"
nginx_config_path: "/etc/nginx"
nginx_sites_available: "{{ nginx_config_path }}/sites-available"
nginx_sites_enabled: "{{ nginx_config_path }}/sites-enabled"
default_redirection: "https:// mydomain "
otree_domain: "company.org"
# fqdn of the otree parent domain
......
......@@ -21,7 +21,7 @@ server {
ssl_certificate_key {{ ssl_certificate_key_path }};
location / {
return 403;
return 301 {{ default_redirection }};
}
}
......@@ -13,6 +13,10 @@ server {
ssl_certificate {{ ssl_certificate_path }};
ssl_certificate_key {{ ssl_certificate_key_path }};
location = /favicon.ico {
alias /var/www/media/images/favicon.ico;
}
location / {
access_log off;
proxy_pass http://127.0.0.1:{{ item.value.port }};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment