File tree 5 files changed +11
-5
lines changed
5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ BROKER_URL=amqp://guest:guest@rabbitmq:5672/
41
41
CELERY_BEAT_SCHEDULER = celery.beat:PersistentScheduler
42
42
ASYNC_SIGNALS = True
43
43
44
- SITEURL = http://{hostname }/
44
+ SITEURL = {siteurl }/
45
45
46
46
ALLOWED_HOSTS = " ['django', '*', '{hostname}']"
47
47
@@ -67,6 +67,7 @@ JENKINS_HTTPS_PORT=9443
67
67
# #################
68
68
GEONODE_LB_HOST_IP = {hostname}
69
69
GEONODE_LB_PORT = 80
70
+ PUBLIC_PORT = {public_port}
70
71
71
72
# IP or domain name and port where the server can be reached on HTTPS (leave HOST empty if you want to use HTTP only)
72
73
# port where the server can be reached on HTTPS
@@ -240,7 +241,7 @@ LDAP_GROUP_PROFILE_MEMBER_ATTR=uniqueMember
240
241
POSTGRESQL_MAX_CONNECTIONS = 200
241
242
242
243
# Common containers restart policy
243
- RESTART_POLICY_CONDITION = "on-failure"
244
+ RESTART_POLICY_CONDITION = " on-failure"
244
245
RESTART_POLICY_DELAY = " 5s"
245
246
RESTART_POLICY_MAX_ATTEMPTS = " 3"
246
247
RESTART_POLICY_WINDOW = 120s
Original file line number Diff line number Diff line change @@ -64,4 +64,5 @@ local_settings.py
64
64
.idea /
65
65
.vscode /
66
66
.vagrant /
67
- Vagrantfile
67
+ Vagrantfile
68
+ /.env
Original file line number Diff line number Diff line change @@ -81,9 +81,11 @@ def _get_vals_to_replace(args):
81
81
}
82
82
tcp = 'https' if ast .literal_eval (f"{ _jsfile .get ('https' , args .https )} " .capitalize ()) else 'http'
83
83
84
+ _vals_to_replace ["public_port" ] = '443' if ast .literal_eval (f"{ _jsfile .get ('https' , args .https )} " .capitalize ()) else '80'
84
85
_vals_to_replace ["http_host" ] = _jsfile .get ("hostname" , args .hostname ) if tcp == 'http' else ""
85
86
_vals_to_replace ["https_host" ] = _jsfile .get ("hostname" , args .hostname ) if tcp == 'https' else ""
86
87
88
+ _vals_to_replace ["siteurl" ] = f"{ tcp } ://{ _jsfile .get ('hostname' , args .hostname )} "
87
89
_vals_to_replace ["geoserver_ui" ] = f"{ tcp } ://{ _jsfile .get ('hostname' , args .hostname )} "
88
90
_vals_to_replace ["secret_key" ] = _jsfile .get ("secret_key" ,args .secret_key ) or "" .join (random .choice (_strong_chars ) for _ in range (50 ))
89
91
_vals_to_replace ["letsencrypt_mode" ] = "disabled" if not _vals_to_replace .get ("https_host" ) else "production"
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ location / {
140
140
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
141
141
proxy_set_header X-Forwarded-Proto $scheme;
142
142
proxy_hide_header X-Frame-Options;
143
+ proxy_request_buffering off;
143
144
144
145
# uwsgi_params
145
146
include /etc/nginx/uwsgi_params;
@@ -149,6 +150,7 @@ location / {
149
150
150
151
# when a client closes the connection then keep the channel to uwsgi open. Otherwise uwsgi throws an IOError
151
152
uwsgi_ignore_client_abort on;
153
+ uwsgi_request_buffering off;
152
154
153
155
location ~* \.(?:js|jpg|jpeg|gif|png|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|ttf|rtf|swf|ico|flv|woff|woff2|svg|xml)$ {
154
156
gzip_static always;
Original file line number Diff line number Diff line change 1
1
[uwsgi]
2
- # socket = 0.0.0.0:8000
3
- http-socket = 0.0.0.0:8000
2
+ socket = 0.0.0.0:8000
3
+ # http-socket = 0.0.0.0:8000
4
4
logto = /var/log/geonode.log
5
5
# pidfile = /tmp/geonode.pid
6
6
You can’t perform that action at this time.
0 commit comments