Showing 1 changed files with 29 additions and 0 deletions
+29
etc/nginx/sites-available/searx
... ...
@@ -0,0 +1,29 @@
1
+server {
2
+	listen         80;
3
+	server_name    searx.paris12.pcf.fr;
4
+	return         301 https://$server_name$request_uri;
5
+}
6
+
7
+server {
8
+	listen 443 ssl;
9
+	server_name searx.paris12.pcf.fr;
10
+
11
+	access_log /var/log/nginx/searx/access.log;
12
+	error_log /var/log/nginx/searx/error.log;
13
+
14
+	ssl_certificate /etc/letsencrypt/live/searx.paris12.pcf.fr/fullchain.pem;
15
+	ssl_certificate_key /etc/letsencrypt/live/searx.paris12.pcf.fr/privkey.pem;
16
+
17
+    location / {
18
+        proxy_http_version 1.1;
19
+        proxy_set_header Upgrade $http_upgrade;
20
+        proxy_set_header Connection 'upgrade';
21
+        proxy_set_header Host $host;
22
+        proxy_cache_bypass $http_upgrade;
23
+        proxy_intercept_errors on;
24
+        recursive_error_pages on;
25
+        proxy_set_header X-Script-Name /searx;
26
+        proxy_buffering off;
27
+        proxy_pass http://127.0.0.1:8888;
28
+    }
29
+}