mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-14 22:01:28 +00:00
Update docs and add nginx redirect
This commit is contained in:
parent
a869c97c3b
commit
5c75422c6f
2 changed files with 9 additions and 5 deletions
|
@ -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 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. 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
|
## Tips
|
||||||
|
|
||||||
|
|
|
@ -23,16 +23,19 @@ upstream puma {
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# HTTP -> HTTPS redirect
|
# HTTP -> HTTPS redirect
|
||||||
server {
|
#server {
|
||||||
listen *:$STAGING_PORT;
|
# listen *:$STAGING_PORT;
|
||||||
# server_name $STAGING_DOMAIN;
|
# server_name $STAGING_DOMAIN;
|
||||||
return 301 https://$STAGING_DOMAIN$request_uri;
|
# return 301 https://$STAGING_DOMAIN$request_uri;
|
||||||
}
|
#}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
#listen *:$STAGING_PORT default_server;
|
#listen *:$STAGING_PORT default_server;
|
||||||
listen *:$STAGING_PORT_SSL ssl default_server;
|
listen *:$STAGING_PORT_SSL ssl default_server;
|
||||||
|
|
||||||
|
# Redirect to HTTPS
|
||||||
|
error_page 497 https://$host:$server_port$request_uri;
|
||||||
|
|
||||||
## domain_agnostic staging
|
## domain_agnostic staging
|
||||||
# server_name $STAGING_DOMAIN;
|
# server_name $STAGING_DOMAIN;
|
||||||
root $APP_PATH_PUBLIC;
|
root $APP_PATH_PUBLIC;
|
||||||
|
|
Loading…
Reference in a new issue