Skip to content

Commit

Permalink
Add proxy pass
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkbatya committed Jul 25, 2024
1 parent 9f56fa3 commit 8c83975
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ http {
listen 80;
server_name {{ user.hostname }}.{{ hostname_base }};
location / {
return 204;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://{{ user.ip }}:8080;
}
}
{% endfor %}
Expand Down

0 comments on commit 8c83975

Please sign in to comment.