Closed trippleflux closed 1 year ago
@trippleflux it seems like 1.21.4.2 is currently unreleased. Tried to reproduce problem with openresty-1.21.4.1, but rendering works fine. Maybe there is something in error.log file?
@trippleflux is it still an issue?
@trippleflux This example with openresty-1.21.4.2rc1 renders test.md file without problems. I hope this helps. Feel free to reopen issue in case of troubles
# Dockerfile
FROM gcc:12.3.0-bookworm
WORKDIR /
EXPOSE 8080
# download and extract archive with ngx_markdown_filter_module src
RUN wget https://github.com/ukarim/ngx_markdown_filter_module/archive/refs/tags/0.1.2.tar.gz && \
tar -zxvf 0.1.2.tar.gz
# download and extract archive with openresty src
RUN wget https://openresty.org/download/openresty-1.21.4.2rc1.tar.gz && \
tar -zxvf openresty-1.21.4.2rc1.tar.gz
# install necessary libs
RUN apt-get update && \
yes | apt-get install libcmark-dev && \
yes | apt-get install libpcre3-dev && \
yes | apt-get install libssl-dev
# build openresty
RUN cd openresty-1.21.4.2rc1 && \
./configure --add-module=/ngx_markdown_filter_module-0.1.2 && \
make && \
make install
RUN cp /ngx_markdown_filter_module-0.1.2/template.html /usr/local/openresty/nginx/html
# write nginx.conf file
RUN echo '\
worker_processes 1; \n\
events { \n\
worker_connections 1024; \n\
} \n\
http { \n\
include mime.types; \n\
default_type application/octet-stream; \n\
sendfile on; \n\
keepalive_timeout 65; \n\
server { \n\
listen 8080; \n\
server_name localhost; \n\
location / { \n\
root html; \n\
index index.html index.htm; \n\
} \n\
location ~ \.md { \n\
markdown_filter on; \n\
markdown_template /usr/local/openresty/nginx/html/template.html; \n\
} \n\
error_page 500 502 503 504 /50x.html; \n\
location = /50x.html { \n\
root html; \n\
} \n\
} \n\
}' > /usr/local/openresty/nginx/conf/nginx.conf
# write test.md file
RUN echo '\
This is list \n\
\n\
* one \n\
* two \n\
* 3 ' > /usr/local/openresty/nginx/html/test.md
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]
@ukarim
Really sorry for these, didn't notice your replies, will test again once I have the time.
Thanks again.
Getting the same issue as this. Site usable again after recompiling without ngx_markdown_filter_module.
On openresty-1.21.4.2 ( from github).