-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnginx-memes.conf
50 lines (44 loc) · 1.08 KB
/
nginx-memes.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
44
45
46
47
48
49
50
server {
# listen 80;
listen 443 ssl;
ssl on;
ssl_certificate /certs/memetrades.com/fullchain.pem;
ssl_certificate_key /certs/memetrades.com/key.pem;
server_name memetrades.com;
location /static/ {
root /src/memeServer/;
}
location / {
include proxy_params;
proxy_pass http://unix:/tmp/meme-prod.sock;
}
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
#server {
# listen 443 ssl;
# server_name www.memetrades.com new.memetrades.com old.memetrades.com;
# rewrite ^(.*)$ $scheme://memetrades.com$1;
#}
#server {
# listen 80;
# listen [::]:80;
# server_name memetrades.com www.memetrades.com;
# if ($http_user_agent ~ facebookexternalhit) {
# return 302 https://$server_name$request_uri;
# }
# return 301 https://memetrades.com$request_uri;
#}
#server {
# listen 80;
# server_name dev.memetrades.com;
#
# location /static/ {
# root /src/memeServer/;
# }
#
# location / {
# include proxy_params;
# proxy_pass http://unix:/tmp/meme-dev.sock;
# }
#}