Skip to content

Instantly share code, notes, and snippets.

@sipamungkas
Last active October 24, 2023 16:17
Show Gist options
  • Select an option

  • Save sipamungkas/266a611a08391235d0ccfede1843603c to your computer and use it in GitHub Desktop.

Select an option

Save sipamungkas/266a611a08391235d0ccfede1843603c to your computer and use it in GitHub Desktop.

Revisions

  1. sipamungkas renamed this gist Oct 24, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. sipamungkas created this gist Oct 24, 2023.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    server {

    server_name my-server.com www.my-server.com;

    location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;

    proxy_pass http://localhost:9000;
    include proxy_params;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    }