Skip to content

Commit

Permalink
Merge pull request #250 from deNBI/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dweinholz authored May 13, 2022
2 parents 04e1239 + 5964781 commit fbefe81
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 34 deletions.
6 changes: 3 additions & 3 deletions FastapiOpenRestyConfigurator/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fastapi==0.75.2
fastapi==0.77.1
uvicorn==0.17.6
werkzeug==2.1.1
Jinja2==3.1.1
werkzeug==2.1.2
Jinja2==3.1.2
python-dotenv==0.20.0
gunicorn==20.1.0
27 changes: 16 additions & 11 deletions examples/templates/jupyternotebook%v01.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,21 @@ location /{{ key_url }} {
end
}

# After check via lua-oidc is done, start reverse proxying this backend by configuring a billion headers.
proxy_pass {{ location_url }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_pass {{ location_url }};
proxy_http_version 1.1;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
proxy_set_header X-Scheme $scheme;

client_max_body_size 0;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header Referrer-Policy "same-origin" always;


}
26 changes: 16 additions & 10 deletions examples/templates/jupyternotebook%v02.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ location /{{ key_url }} {
}

# After check via lua-oidc is done, start reverse proxying this backend by configuring a billion headers.
proxy_pass {{ location_url }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_pass {{ location_url }};
proxy_http_version 1.1;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
proxy_set_header X-Scheme $scheme;

client_max_body_size 0;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header Referrer-Policy "same-origin" always;


}
26 changes: 16 additions & 10 deletions examples/templates/jupyternotebook%v03.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,21 @@
}

# After check via lua-oidc is done, start reverse proxying this backend by configuring a billion headers.
proxy_pass {{ location_url }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;

proxy_pass {{ location_url }};
proxy_http_version 1.1;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
proxy_set_header X-Scheme $scheme;

client_max_body_size 0;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header Referrer-Policy "same-origin" always;

}

0 comments on commit fbefe81

Please sign in to comment.