diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 306cea95..d670351e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -13,5 +13,8 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} exempt-issue-labels: 'retained' exempt-pr-labels: 'retained' - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days' - stale-pr-message: 'This pr is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days' + stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days' + stale-pr-message: 'This pr is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days' + days-before-stale: 90 + days-before-close: 14 + days-before-pr-close: -1 diff --git a/Dockerfile b/Dockerfile index 75030477..cd0ed700 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,4 +13,5 @@ RUN yarn install RUN yarn build FROM nginx:alpine as mermaid-live-editor-runner +COPY ./nginx.conf /etc/nginx/conf.d/default.conf COPY --from=mermaid-live-editor-builder --chown=nginx:nginx /home/docs /usr/share/nginx/html diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 00000000..dd830603 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name mermaid; + location / { + root /usr/share/nginx/html; + # Fallback to index.html for other paths + try_files $uri /index.html; + } +} \ No newline at end of file