summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx/share/sites.d/https/com.voidfire.mumble
blob: cd81283b776b0d06f2aa4af79c8a6a9137346509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
server {
	listen 443 ssl http2;
	listen [::]:443 ssl http2;

	server_name mumble.voidfire.com;

	ssl_certificate /etc/letsencrypt/live/mumble.voidfire.com/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/mumble.voidfire.com/privkey.pem;

	include /etc/nginx/snippets.d/certbot.conf;
	include /etc/nginx/snippets.d/headers.conf;
	include /etc/nginx/snippets.d/ssl.conf;

	root /var/www/com.voidfire.mumble;

	location / {
		proxy_http_version 1.1;
		proxy_set_header Connection      $http_connection;
		proxy_set_header Host            $host;
		proxy_set_header Upgrade         $http_upgrade;
		proxy_set_header X-Forwarded-For $remote_addr;

		proxy_pass http://127.0.0.1:8080;
	}

	location /proxy {
		proxy_http_version 1.1;
		proxy_set_header Connection      $http_connection;
		proxy_set_header Upgrade         $http_upgrade;

		proxy_pass http://127.0.0.1:64737;
	}

	location /botamusique {
		proxy_http_version 1.1;
		proxy_set_header Connection      $http_connection;
		proxy_set_header Upgrade         $http_upgrade;

		proxy_pass http://127.0.0.1:13586;
	}
}