forked from Filemarket-xyz/mark3d
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfilemarket.manta.conf
37 lines (32 loc) · 993 Bytes
/
filemarket.manta.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
server {
listen 80;
server_name manta.filemarket.xyz;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name manta.filemarket.xyz;
ssl_certificate /etc/letsencrypt/live/manta.filemarket.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/manta.filemarket.xyz/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location /ws/ {
proxy_pass http://127.0.0.1:9602/ws/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
}
location /api/ {
proxy_pass http://127.0.0.1:9602/;
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location /ipfs/ {
proxy_pass https://gateway.lighthouse.storage/ipfs/;
proxy_http_version 1.1;
}
}