-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecmt.yiwangchunyu.wang.conf
41 lines (37 loc) · 1.18 KB
/
ecmt.yiwangchunyu.wang.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
server {
listen 80;
listen 443 ssl;
server_name ecmt.yiwangchunyu.wang;
ssl on;
root /data/app/ecmt/;
index index.html index.htm index.php;
ssl_certificate /data/cert/3423387_ecmt.yiwangchunyu.wang.pem;
ssl_certificate_key /data/cert/3423387_ecmt.yiwangchunyu.wang.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
index index.html index.htm index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
# Django media
location /media {
alias /data/app/ecmt/media; # your Django project's media files - amend as required
}
location /static {
alias /data/app/ecmt/static; # your Django project's static files - amend as required
}
# Finally, send all non-media requests to the Django server.
location /admin {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3035;
}
location /service {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3035;
}
}