mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Add password to staging (not used)
This commit is contained in:
parent
30b9198b6d
commit
a09416e0ae
3 changed files with 10 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -36,6 +36,7 @@ ext/ssl
|
||||||
|
|
||||||
# Nginx; only the default cfg is ignored.
|
# Nginx; only the default cfg is ignored.
|
||||||
ext/nginx.conf.d/default.conf
|
ext/nginx.conf.d/default.conf
|
||||||
|
!ext/nginx.conf.d/.ht*
|
||||||
|
|
||||||
# Uploaded Assets
|
# Uploaded Assets
|
||||||
/public/system/*
|
/public/system/*
|
||||||
|
|
1
ext/nginx.conf.d/.htpasswd_staging
Normal file
1
ext/nginx.conf.d/.htpasswd_staging
Normal file
|
@ -0,0 +1 @@
|
||||||
|
staging:$apr1$UB3GAUTX$GhkDZSJBKfsWsNOJB15aK/
|
|
@ -31,13 +31,19 @@ upstream puma {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen *:$STAGING_PORT default_server;
|
listen *:$STAGING_PORT default_server;
|
||||||
# SSL disabled for now
|
## SSL disabled for now
|
||||||
# listen *:STAGING_PORT_SSL ssl default_server;
|
# listen *:STAGING_PORT_SSL ssl default_server;
|
||||||
# domain_agnostic staging
|
|
||||||
|
## domain_agnostic staging
|
||||||
# server_name $STAGING_DOMAIN;
|
# server_name $STAGING_DOMAIN;
|
||||||
root $APP_PATH_PUBLIC;
|
root $APP_PATH_PUBLIC;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
|
# Add basic auth
|
||||||
|
# TODO: add htpassword generation
|
||||||
|
# auth_basic "Staging Area";
|
||||||
|
# auth_basic_user_file "/etc/nginx/conf.d/.htpasswd_staging";
|
||||||
|
|
||||||
# ssl_certificate /etc/ssl/certs/ensl_fullchain.pem;
|
# ssl_certificate /etc/ssl/certs/ensl_fullchain.pem;
|
||||||
# ssl_certificate_key /etc/ssl/private/ensl_privkey.pem;
|
# ssl_certificate_key /etc/ssl/private/ensl_privkey.pem;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue