Skip to content

Instantly share code, notes, and snippets.

@craftslab
Last active January 2, 2024 15:30
Show Gist options
  • Save craftslab/93fa73c53f5e8d3a4c7988653064ec75 to your computer and use it in GitHub Desktop.
Save craftslab/93fa73c53f5e8d3a4c7988653064ec75 to your computer and use it in GitHub Desktop.
redoc deploy
FROM nginx:latest
RUN mkdir -p /usr/share/nginx/html/redoc
COPY redoc-static.html /usr/share/nginx/html/redoc/index.html
COPY nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]
server {
listen 8080;
listen [::]:8080;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location /redoc/ {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment