## Bu dosya ansible tarafindan yonetilmektedir!
## Burada yapilan degisikliklerin uzerine yazilir!!
{{ ansible_managed }}

upstream django {
    server unix:///var/run/ahtapot-ps/ps.sock;
}

server {
    listen      {{ nginx['portscanner']['listen'] }};
    server_name {{ nginx['portscanner']['server_name'] }};
    charset     utf-8;

    ssl                  on;
    ssl_certificate      {{ nginx['certificate']['destination'] }};
    ssl_certificate_key  {{ nginx['key']['destination'] }};

    ssl_session_timeout  5m;

    ssl_protocols  TLSv1;
    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_prefer_server_ciphers   on;

    client_max_body_size 75M;

    access_log      {{ nginx['portscanner']['access_log'] }};
    error_log       {{ nginx['portscanner']['error_log'] }};

    location /static_media  {
        root /var/opt/ahtapot-ps;
    }

    location /static {
        root /var/opt/ahtapot-ps;
    }

    location / {
        uwsgi_pass  django;
        include     /var/opt/ahtapot-ps/uwsgi_params;
    }
}
