~dricottone/huttese

ref: c976d75090723c7792c995d225e1d05263524aaa huttese/sr/etc/nginx/http.d/meta.conf -rw-r--r-- 1.5 KiB
c976d750Dominic Ricottone Configuration updates 2 years ago
                                                                                
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
server {
	listen 80;
	server_name meta.dominic-ricottone.com;

	location / {
		return 302 https://$server_name$request_uri;
	}

	location ^~ /.well-known {
		root /var/www;
	}

	location = /robots.txt {
		root /var/www;
	}
}

server {
	listen 443 ssl http2;
	gzip on;
	gzip_types text/css text/html;
	server_name meta.dominic-ricottone.com;

	ssl_certificate /var/lets-encrypt/inter.dominic-ricottone.com.cert;
	ssl_certificate_key /var/lets-encrypt/inter.dominic-ricottone.com.key;
	ssl_protocols TLSv1.2 TLSv1.3;
	ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
	ssl_prefer_server_ciphers on;

	location / {
		proxy_pass http://localhost:5000;
		include headers.conf;
		add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline' *.stripe.com *.stripe.network; frame-src *.stripe.com *.stripe.network" always;
		include web.conf;
	}

	location /register {
		proxy_pass http://localhost:5000;
		add_header Content-Security-Policy "default-src 'none'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline' *.stripe.com *.stripe.network; frame-src *.stripe.com *.stripe.network" always;
	}

	location /query {
		proxy_pass http://localhost:5100;
		include graphql.conf;
	}

	location /static {
		root /usr/lib/python3.9/site-packages/metasrht;
		expires 30d;
	}

	location ^~ /.well-known {
		root /var/www;
	}

	location = /robots.txt {
		root /var/www;
	}
}