~dricottone/huttese

ref: 2d2a6f66c88338f618bb6b6e5ceb6c26aec64b89 huttese/sr/etc/nginx/http.d/meta.conf -rw-r--r-- 1.8 KiB
2d2a6f66Dominic Ricottone Major updates 1 year, 7 months 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
61
62
63
64
65
66
67
68
69
70
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.lets-encrypt.cert;
	ssl_certificate_key /var/lets-encrypt/inter.lets-encrypt.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_read_timeout 300s;
		proxy_connect_timeout 75s;
		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_read_timeout 300s;
		proxy_connect_timeout 75s;
		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 /.well-known/oauth-authorization-server {
		proxy_pass http://127.0.0.1:5000;
	}

	location /query {
		proxy_read_timeout 300s;
		proxy_connect_timeout 75s;
		proxy_pass http://localhost:5100;
		include graphql.conf;
	}

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

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

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