浏览代码

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 年之前
父节点
当前提交
9d221854af
共有 2 个文件被更改,包括 58 次插入0 次删除
  1. 53 0
      justpy_allow-hosting-behind-reverse-proxy-with-prefixed-path.patch
  2. 5 0
      release.dockerfile

文件差异内容过多而无法显示
+ 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 . 

部分文件因为文件数量过多而无法显示