Add password to staging (not used)

This commit is contained in:
Ari Timonen 2020-04-08 23:01:43 +03:00
parent 30b9198b6d
commit a09416e0ae
3 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View file

@ -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/*

View file

@ -0,0 +1 @@
staging:$apr1$UB3GAUTX$GhkDZSJBKfsWsNOJB15aK/

View file

@ -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;