Bladeren bron

allowing nicegui to be hosted behind reverse proxy with path prefix

using patch from pull request https://github.com/elimintz/justpy/pull/258
Rodja Trappe 4 jaren geleden
bovenliggende
commit
9d221854af
2 gewijzigde bestanden met toevoegingen van 58 en 0 verwijderingen
  1. 53 0
      justpy_allow-hosting-behind-reverse-proxy-with-prefixed-path.patch
  2. 5 0
      release.dockerfile

File diff suppressed because it is too large
+ 53 - 0
justpy_allow-hosting-behind-reverse-proxy-with-prefixed-path.patch


+ 5 - 0
release.dockerfile

@@ -2,6 +2,11 @@ FROM python:3.9-slim
 
 RUN python -m pip install nicegui
 
+RUN apt update && apt install patch -y && rm -rf /var/lib/apt/lists/*
+WORKDIR /usr/local/lib/python3.9/site-packages/justpy/
+COPY justpy_allow-hosting-behind-reverse-proxy-with-prefixed-path.patch .
+RUN patch -p1 < justpy_allow-hosting-behind-reverse-proxy-with-prefixed-path.patch
+
 WORKDIR /app
 
 COPY main.py README.md . 

Some files were not shown because too many files changed in this diff