[GH-ISSUE #2007] Custom Nginx Configuration #1452

Closed
opened 2026-02-26 07:31:03 +03:00 by kerem · 4 comments
Owner

Originally created by @dsw-solutions on GitHub (Apr 16, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2007

I'm trying to switch from regular NGINX to NPM but can't get the following configuration to work in NPM. I've tried adding various custom configurations but I'm probably not doing it right.

server{
    listen 443 ssl http2;
    ssl_certificate /etc/nginx/ssl/mydomaincert.crt;
    ssl_certificate_key /etc/nginx/ssl/myprivatekey.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!MD5;

    server_name pve.lan;

    proxy_redirect off;

    location / {
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_buffering off;
      client_max_body_size 0;
      proxy_connect_timeout  3600s;
      proxy_read_timeout  3600s;
      proxy_send_timeout  3600s;
      send_timeout  3600s;

      proxy_pass https://192.168.1.51:8006;
    }
}
Originally created by @dsw-solutions on GitHub (Apr 16, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2007 I'm trying to switch from regular NGINX to NPM but can't get the following configuration to work in NPM. I've tried adding various custom configurations but I'm probably not doing it right. ``` server{ listen 443 ssl http2; ssl_certificate /etc/nginx/ssl/mydomaincert.crt; ssl_certificate_key /etc/nginx/ssl/myprivatekey.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; server_name pve.lan; proxy_redirect off; location / { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_buffering off; client_max_body_size 0; proxy_connect_timeout 3600s; proxy_read_timeout 3600s; proxy_send_timeout 3600s; send_timeout 3600s; proxy_pass https://192.168.1.51:8006; } } ```
kerem closed this issue 2026-02-26 07:31:03 +03:00
Author
Owner

@dsw-solutions commented on GitHub (Apr 16, 2022):

Figured it out.

<!-- gh-comment-id:1100729802 --> @dsw-solutions commented on GitHub (Apr 16, 2022): Figured it out.
Author
Owner

@GLorenzo679 commented on GitHub (Sep 16, 2022):

How did you do it?

<!-- gh-comment-id:1249707589 --> @GLorenzo679 commented on GitHub (Sep 16, 2022): How did you do it?
Author
Owner

@kamit-transient commented on GitHub (Apr 17, 2023):

@dsw-solutions would plz you share your solution?

<!-- gh-comment-id:1510669319 --> @kamit-transient commented on GitHub (Apr 17, 2023): @dsw-solutions would plz you share your solution?
Author
Owner

@dsw-solutions commented on GitHub (Apr 17, 2023):

I just had to ensure the right settings were enabled.
-Websockets Support
-Force SSL
-HTTP/2 Support

<!-- gh-comment-id:1511258197 --> @dsw-solutions commented on GitHub (Apr 17, 2023): I just had to ensure the right settings were enabled. -Websockets Support -Force SSL -HTTP/2 Support
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#1452
No description provided.