Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 6, 2024
2 parents 85dc789 + d3812f5 commit 85c7cc1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pastebook.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
server {
listen 80;
server_name <DOMAIN>;

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl;
server_name <DOMAIN>;

location / {
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://localhost:3000/;
}
}

server {
listen 80;
server_name api.<DOMAIN>;

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl;
server_name api.<DOMAIN>;

client_max_body_size 6M;

location / {
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://localhost:8080/;
}
}

0 comments on commit 85c7cc1

Please sign in to comment.