File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ export GEONODE_LB_PORT=${GEONODE_LB_PORT:-8000}
44
44
export GEOSERVER_LB_HOST_IP=${GEOSERVER_LB_HOST_IP:- geoserver}
45
45
export GEOSERVER_LB_PORT=${GEOSERVER_LB_PORT:- 8080}
46
46
47
- echo " Replacing environement variables"
48
- envsubst ' \$HTTP_HOST \$HTTPS_HOST \$HTTP_SCHEME \$GEONODE_LB_HOST_IP \$GEONODE_LB_PORT \$GEOSERVER_LB_HOST_IP \$GEOSERVER_LB_PORT \$RESOLVER' < /etc/nginx/nginx.conf.envsubst > /etc/nginx/nginx.conf
49
- envsubst ' \$HTTP_HOST \$HTTPS_HOST \$HTTP_SCHEME \$GEONODE_LB_HOST_IP \$GEONODE_LB_PORT \$GEOSERVER_LB_HOST_IP \$GEOSERVER_LB_PORT \$RESOLVER' < /etc/nginx/nginx.https.available.conf.envsubst > /etc/nginx/nginx.https.available.conf
50
- envsubst ' \$HTTP_HOST \$HTTPS_HOST \$HTTP_SCHEME \$GEONODE_LB_HOST_IP \$GEONODE_LB_PORT \$GEOSERVER_LB_HOST_IP \$GEOSERVER_LB_PORT' < /etc/nginx/sites-enabled/geonode.conf.envsubst > /etc/nginx/sites-enabled/geonode.conf
47
+ defined_envs=$( printf ' ${%s} ' $( env | cut -d= -f1) )
48
+
49
+ echo " Replacing environment variables"
50
+ envsubst " $defined_envs " < /etc/nginx/nginx.conf.envsubst > /etc/nginx/nginx.conf
51
+ envsubst " $defined_envs " < /etc/nginx/nginx.https.available.conf.envsubst > /etc/nginx/nginx.https.available.conf
52
+ envsubst " $defined_envs " < /etc/nginx/sites-enabled/geonode.conf.envsubst > /etc/nginx/sites-enabled/geonode.conf
51
53
52
54
echo " Enabling or not https configuration"
53
55
if [ -z " ${HTTPS_HOST} " ]; then
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ location /geoserver {
62
62
63
63
# GeoNode
64
64
location /static/ {
65
- alias /mnt/volumes/statics/static/ ;
65
+ alias $STATIC_ROOT ;
66
66
67
67
location ~* \.(?:html|js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|ttf|rtf|swf|ico|flv|txt|woff|woff2|svg|xml)$ {
68
68
gzip_static always;
@@ -74,7 +74,7 @@ location /static/ {
74
74
}
75
75
76
76
location /uploaded/ {
77
- alias /mnt/volumes/statics/uploaded/ ;
77
+ alias $MEDIA_ROOT ;
78
78
79
79
location ~* \.(?:html|js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|ttf|rtf|swf|ico|flv|txt|woff|woff2|svg|xml)$ {
80
80
gzip_static always;
You can’t perform that action at this time.
0 commit comments