Update docs and add nginx redirect

This commit is contained in:
Ari Timonen 2020-04-11 15:08:34 +03:00
parent a869c97c3b
commit 5c75422c6f
2 changed files with 9 additions and 5 deletions

View file

@ -42,6 +42,7 @@ There are some unresolved issues to setup dev env.
1. Make sure tmp, tmp/sockets, tmp/pids and log exist.
1. Make sure docker has access to its dirs. You might have to `sudo chown -R 999:999 for` for `db/data` if you have permission issues with docker.
1. You might have to run migrations manually.
## Tips

View file

@ -23,16 +23,19 @@ upstream puma {
#}
# HTTP -> HTTPS redirect
server {
listen *:$STAGING_PORT;
#server {
# listen *:$STAGING_PORT;
# server_name $STAGING_DOMAIN;
return 301 https://$STAGING_DOMAIN$request_uri;
}
# return 301 https://$STAGING_DOMAIN$request_uri;
#}
server {
#listen *:$STAGING_PORT default_server;
listen *:$STAGING_PORT_SSL ssl default_server;
# Redirect to HTTPS
error_page 497 https://$host:$server_port$request_uri;
## domain_agnostic staging
# server_name $STAGING_DOMAIN;
root $APP_PATH_PUBLIC;