Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions extra/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# this configuration is a SSL reverse proxy to the DDNS REST API
# bonus: it will automatically append the IP of the remote client to the query string passed to the API

server {
listen 8081 ssl;
listen [::]:8081 ssl;
server_name ns.domain.ltd; # update accordingly

include snippets/self-signed.conf; # you will have to configure SSL certificates

access_log /var/log/nginx/dyndns-access.log;
error_log /var/log/nginx/dyndns-error.log;

location / {
set $delimeter "";
if ($is_args) {
set $delimeter "&";
}
set $args "$args${delimeter}addr=$remote_addr";
proxy_pass http://127.0.0.1:8080$uri$is_args$args;
}
}