[GH-ISSUE #285] Unable to save custom locations #253

Closed
opened 2026-02-26 06:31:47 +03:00 by kerem · 2 comments
Owner

Originally created by @Klagio on GitHub (Feb 1, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/285

Could you please help me in doing this configuration


server {
    server_name scry.mydomain.com;  
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/scry.mydomain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/scry.mydomain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    location / {
        ssi on;
        proxy_pass https://10.254.0.104/;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;
    }
    # BOSH
    location /http-bind {
        proxy_pass http://10.254.0.104:5280/http-bind;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;
    }

    # xmpp websockets
    location /xmpp-websocket {
        proxy_pass              http://10.254.0.104:5280/xmpp-websocket;
        proxy_http_version      1.1;
        proxy_set_header        Upgrade $http_upgrade;
        proxy_set_header        Connection "upgrade";
        proxy_set_header        Host $host;
        tcp_nodelay             on;
    }
}
Originally created by @Klagio on GitHub (Feb 1, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/285 Could you please help me in doing this configuration ``` server { server_name scry.mydomain.com; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/scry.mydomain.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/scry.mydomain.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot location / { ssi on; proxy_pass https://10.254.0.104/; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; } # BOSH location /http-bind { proxy_pass http://10.254.0.104:5280/http-bind; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; } # xmpp websockets location /xmpp-websocket { proxy_pass http://10.254.0.104:5280/xmpp-websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; tcp_nodelay on; } } ```
kerem 2026-02-26 06:31:47 +03:00
Author
Owner

@marrobHD commented on GitHub (Mar 13, 2020):

With custom nginx configuration I think. But I dont know how. Can you help @jc21

<!-- gh-comment-id:598728664 --> @marrobHD commented on GitHub (Mar 13, 2020): With custom nginx configuration I think. But I dont know how. Can you help @jc21
Author
Owner

@chaptergy commented on GitHub (May 11, 2021):

This should be exactly what you need
image

<!-- gh-comment-id:839045151 --> @chaptergy commented on GitHub (May 11, 2021): This should be exactly what you need ![image](https://user-images.githubusercontent.com/26956711/117872982-d135db80-b28e-11eb-86f3-276b079fb5a4.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#253
No description provided.