Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vlass Manager UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
Vlass Manager UI
Commits
8607f1d5
Commit
8607f1d5
authored
1 year ago
by
Sam Kagan
Browse files
Options
Downloads
Patches
Plain Diff
Fixed CORS issues in local UI via nginx rev-proxy
parent
fa794ab6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!25
Merge 2.4.3 UI to main
,
!21
Added tiles checklist for Accept-and-Archiving calibration jobs
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/env.js
+1
-1
1 addition, 1 deletion
src/env.js
vlass-nginx.local.conf
+46
-0
46 additions, 0 deletions
vlass-nginx.local.conf
with
47 additions
and
1 deletion
src/env.js
+
1
−
1
View file @
8607f1d5
...
...
@@ -18,7 +18,7 @@ A service in angular will capture this info and add it to a service
window
.
__env
.
configUrl
=
'
https://archive-new.nrao.edu/VlassMngr/services/configuration
'
;
break
;
case
'
localhost
'
:
window
.
__env
.
configUrl
=
'
http://localhost:
8080
/VlassMngr/services/configuration
'
;
window
.
__env
.
configUrl
=
'
http://localhost:
4444/api
/VlassMngr/services/configuration
'
;
break
;
default
:
window
.
__env
.
configUrl
=
'
https://webtest.aoc.nrao.edu/VlassMngr/services/configuration
'
;
...
...
This diff is collapsed.
Click to expand it.
vlass-nginx.local.conf
0 → 100644
+
46
−
0
View file @
8607f1d5
# Copyright 2024 Associated Universities, Inc.
#
# This file is part of Telescope Time Allocation Tools (TTAT).
#
# TTAT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# TTAT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with TTAT. If not, see <https://www.gnu.org/licenses/>.
#
http
{
server
{
listen
4444
;
# client_max_body_size 50m;
location
/ {
proxy_pass
http
://
localhost
:
4200
;
proxy_set_header
Host
$
host
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
$
http_connection
;
}
location
/
api
/ {
proxy_pass
http
://
webtest
.
aoc
.
nrao
.
edu
/;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
'upgrade'
;
proxy_set_header
Host
$
host
;
proxy_cache_bypass
$
http_upgrade
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
}
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# root /usr/share/nginx/html;
# }
}
}
events
{}
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