-
Notifications
You must be signed in to change notification settings - Fork 0
/
kantenkugel.com.conf
43 lines (36 loc) · 1.14 KB
/
kantenkugel.com.conf
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
# Force HTTPS
server
{
server_name kantenkugel.com *.kantenkugel.com;
listen 80;
return 301 https://www.kantenkugel.com$request_uri;
}
server
{
server_name www.kantenkugel.com;
root /data/statics/$server_name/;
listen 443 ssl http2;
ssl_certificate /data/keys/kantenkugel.crt;
ssl_certificate_key /data/keys/kantenkugel.key;
access_log /var/log/nginx/mywebsite.com.log combined buffer=10k flush=1m;
error_log /var/log/nginx/mywebsite.com.error.log error;
location = / {
return 302 https://$server_name/m/;
}
location /m {
set $spabase /m;
include templates/spa.conf;
}
location /api/ {
proxy_pass http://nodeapi/;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
include templates/default.conf;
#include templates/php.conf;
include templates/no-php.conf;
include templates/gzip.conf;
include templates/static-cache.conf;
include templates/ssl.conf;
}