forked from agstrike/production-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
33 lines (26 loc) · 865 Bytes
/
nginx.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
server {
listen 80;
listen [::]:80;
server_name silverstrike.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443;
listen [::]:443;
server_name silverstrike.example.com;
charset utf-8;
client_max_body_size 5M;
ssl on;
ssl_certificate /etc/letsencrypt/live/silverstrike.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/silverstrike.example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/silverstrike.example.com/chain.pem;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
location /static {
alias /srv/webapps/silverstrike/public/static;
}
location / {
uwsgi_pass unix:/run/uwsgi/silverstrike.sock;
include /etc/nginx/uwsgi_params;
}
}