Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Mar 18, 2024
1 parent 65bd8ee commit 7b2e2db
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ http {
include mime.types;
default_type application/octet-stream;

proxy_ssl_server_name on;
resolver 8.8.8.8;

upstream upstream_ttlsh {
server ttlsh.herokuapp.com:443;
}

server {
listen __PORT__;
server_name router.ttl.sh;
Expand All @@ -18,8 +25,8 @@ http {

location /v2 {
client_max_body_size 10000m;

proxy_pass https://ttlsh.herokuapp.com:443;
set $upstream upstream_app_a;
proxy_pass https://$upstream;
proxy_ssl_name ttlsh.herokuapp.com;
proxy_set_header x-forwarded-host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 7b2e2db

Please sign in to comment.