Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
ddeb4c65
Commit
ddeb4c65
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
OSB-45
: fix deployment small issues
parent
6e28aa66
No related branches found
No related tags found
1 merge request
!89
Monitoring maintenance Epic branch merge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCU/Maintenance/DBInterface/django_postgresql/settings.py
+4
-1
4 additions, 1 deletion
LCU/Maintenance/DBInterface/django_postgresql/settings.py
LCU/Maintenance/Docker/NginxProxy/nginx.conf
+16
-13
16 additions, 13 deletions
LCU/Maintenance/Docker/NginxProxy/nginx.conf
with
20 additions
and
14 deletions
LCU/Maintenance/DBInterface/django_postgresql/settings.py
+
4
−
1
View file @
ddeb4c65
...
...
@@ -32,7 +32,10 @@ SECRET_KEY = 'x)5=9*2a&)32h-loh@rlt_9eyw%t$-fqao*#1j2gh^7=^bnjyy'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
os
.
environ
.
get
(
'
MDB_DEBUG
'
,
False
)
ALLOWED_HOSTS
=
[
'
lofarmonitortest.control.lofar
'
,
'
localhost
'
,
'
127.0.0.1
'
]
ALLOWED_HOSTS
=
[
'
lofarmonitortest.control.lofar
'
,
'
lofarmonitor.control.lofar
'
,
'
localhost
'
,
'
127.0.0.1
'
]
# Application definition
...
...
This diff is collapsed.
Click to expand it.
LCU/Maintenance/Docker/NginxProxy/nginx.conf
+
16
−
13
View file @
ddeb4c65
server
{
listen
80
;
server_name
_
;
location
/api
{
proxy_pass
http://lofar-maintenance-restservice:8000
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
}
location
/
{
root
/opt/lofar/share/www/
;
}
server
{
listen
80
;
server_name
_
;
location
/
{
try_files
$uri
$uri
/
/index.html
;
root
/opt/lofar/share/www
;
proxy_cache_revalidate
on
;
}
location
/api
{
proxy_read_timeout
6000s
;
proxy_pass
http://lofar-maintenance-restservice:8000
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_pass_request_headers
on
;
client_max_body_size
500M
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment