Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
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
Container Registry
Model registry
Operate
Environments
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
web-et-numerique
Factory
Resin
Client
Commits
2f75637a
Commit
2f75637a
authored
3 months ago
by
Etienne LOUPIAS
Browse files
Options
Downloads
Patches
Plain Diff
test sans resolver
parent
d0183762
No related branches found
No related tags found
1 merge request
!942
render page for linkedin
Pipeline
#115233
passed
3 months ago
Stage: build
Stage: deploy
Stage: quality
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nginx/default.conf
+1
-3
1 addition, 3 deletions
nginx/default.conf
with
1 addition
and
3 deletions
nginx/default.conf
+
1
−
3
View file @
2f75637a
...
...
@@ -42,14 +42,12 @@ server {
# use regular expression for location to avoid nginx resolve error (https://stackoverflow.com/questions/57937222/502-bad-gateway-nginx-no-resolver-defined-to-resolve ) #
location
^~ /
actualites
/
details
/ {
resolver
dns
-
default
.
openshift
-
dns
.
svc
.
cluster
.
local
;
# proxy_set_header must be outside if clause (cf. https://stackoverflow.com/questions/16500594/why-i-cant-put-proxy-set-header-inside-an-if-clause )
proxy_set_header
User
-
Agent
""
;
if
($
prerender
=
1
) {
# For use of proxy_pass within a regular expression location, cf. https://stackoverflow.com/a/53354944
proxy_pass
http
://
res
-
client
-
service
:
8080
/
api
/
render
/$
uri
;
proxy_pass
http
://
res
-
client
-
service
.
ns
-
res
-
d01
-
syn
.
svc
.
cluster
.
local
:
8080
/
api
/
render
/$
uri
;
}
# if no prerender, apply default angular route
...
...
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