You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB
Plaintext

# Redirect inbound http to https
server {
listen 80;
server_name tubbymemes.xyz;
return 301 https://tubbymemes.xyz$request_uri;
}
# Load SSL configs and serve SSL site
server {
listen 443 ssl;
server_name tubbymemes.xyz;
error_log /var/log/nginx/tubbymemes.xyz-error.log warn;
access_log /var/log/nginx/tubbymemes.xyz-access.log;
client_body_in_file_only clean;
client_body_buffer_size 32K;
# set max upload size
client_max_body_size 8M;
sendfile on;
send_timeout 600s;
location / {
proxy_pass http://127.0.0.1:4000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Frame-Options "SAMEORIGIN";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
location /ipfs/ {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Frame-Options "SAMEORIGIN";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
include conf.d/ssl.conf;
ssl_certificate /etc/letsencrypt/live/tubbymemes.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tubbymemes.xyz/privkey.pem;
}