Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
11412e2a
Commit
11412e2a
authored
4 years ago
by
Mihail Gorceag
Browse files
Options
Downloads
Patches
Plain Diff
feat: fix nginx reverse proxy for some paths
parent
89ce1a33
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nginx/conf.d/nginx.conf
+17
-2
17 additions, 2 deletions
nginx/conf.d/nginx.conf
with
17 additions
and
2 deletions
nginx/conf.d/nginx.conf
+
17
−
2
View file @
11412e2a
...
...
@@ -39,11 +39,26 @@ server {
expires
off
;
}
location
/auth
{
proxy_set_header
X-Forwarded-For
$remote_addr
;
proxy_set_header
Host
$http_host
;
proxy_pass
http://server:3000
;
proxy_http_version
1.1
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Connection
'upgrade'
;
proxy_set_header
X-Forwarded-Proto
$scheme
;
add_header
'Cache-Control'
'no-store,
no-cache,
must-revalidate,
proxy-revalidate,
max-age=0'
;
proxy_set_header
Host
$host
;
proxy_cache_bypass
1
;
proxy_no_cache
1
;
expires
off
;
}
location
~
^/(api|graphql|
auth|
convertDocxToHTML|public|/static/uploads|/static/profiles|subscriptions)/
{
location
~
^/(api|graphql|convertDocxToHTML|public|/static/uploads|/static/profiles|subscriptions)/
{
proxy_set_header
X-Forwarded-For
$remote_addr
;
proxy_set_header
Host
$http_host
;
proxy_pass
http://
localhost
:3000
;
proxy_pass
http://
server
:3000
;
proxy_http_version
1.1
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Connection
'upgrade'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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