gvaweb/gvaweb/webtasks/templates/vhost.nginx
Jan Dittberner 3b05272254 Move code from gvaweb to webtasks
This change allows celery to find its tasks under the expected webtasks
namespace.
2020-03-03 15:23:54 +01:00

24 lines
459 B
Nginx Configuration File

server {
{% if wildcard -%}
server_name .{{ domain|parentdomain }};
{% else -%}
server_name {{ domain }};
{% -endif %}
listen 80;
listen [::]:80;
access_log /var/log/nginx/{{ domain }}.access.log;
error_log /var/log/nginx/{{ domain }}.error.log;
location /.well-known/acme-challenge {
root /srv/www/acme-challenge/{{ domain }};
}
location / {
return 301 https://$host$request_uri;
}
}
# vim: ft=nginx et sw=4 ts=4 si ai