Skip to content

Instantly share code, notes, and snippets.

@cadd
Last active October 30, 2019 10:50
Show Gist options
  • Save cadd/bddf0164486da3eeefd8c769c1d46994 to your computer and use it in GitHub Desktop.
Save cadd/bddf0164486da3eeefd8c769c1d46994 to your computer and use it in GitHub Desktop.
Cloud Run with Nginx
FROM nginx
COPY html /usr/share/nginx/html
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
server {
listen 8080;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
# 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