1 contributor
server {
listen 80;
server_name searx.paris12.pcf.fr;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name searx.paris12.pcf.fr;
access_log /var/log/nginx/searx/access.log;
error_log /var/log/nginx/searx/error.log;
ssl_certificate /etc/letsencrypt/live/searx.paris12.pcf.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/searx.paris12.pcf.fr/privkey.pem;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_intercept_errors on;
recursive_error_pages on;
proxy_set_header X-Script-Name /searx;
proxy_buffering off;
proxy_pass http://127.0.0.1:8888;
}
}