这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

Sample nginx conf when SearXNG listens on port 8080:

server {
	listen 80;
	listen [::]:80;
	server_name searxng.example.com;
	if ($host = searxng.example.com ) {
		return 301 https://$host$request_uri;
	}
	return 404;
}

server {

	listen 443 ssl; # managed by Certbot
	listen [::]:443 ssl; # managed by Certbot
	http2 on;

	server_name searxng.example.com;

	ssl_certificate /etc/letsencrypt/live/searxng.example.com/fullchain.pem; # managed by Certbot
	ssl_certificate_key /etc/letsencrypt/live/searxng.example.com/privkey.pem; # managed by Certbot
	include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
	ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

	loca…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@adevoss
Comment options

@BaconWillRule
Comment options

@return42
Comment options

Answer selected by adevoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants