Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ant.sr
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anton Sarukhanov
ant.sr
Commits
a1f30af9
Commit
a1f30af9
authored
4 years ago
by
Anton Sarukhanov
Browse files
Options
Downloads
Patches
Plain Diff
WIP: kutt
parent
daa1c860
No related branches found
No related tags found
No related merge requests found
Pipeline
#222
passed with stages
Stage:
Stage:
Stage:
in 1 minute and 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nginx.conf
+10
-2
10 additions, 2 deletions
nginx.conf
with
10 additions
and
2 deletions
nginx.conf
+
10
−
2
View file @
a1f30af9
server
{
listen
80
;
recursive_error_pages
on
;
location
/
{
root
/opt/ant.sr/html
;
error_page
404
=
@files
;
...
...
@@ -9,7 +10,14 @@ server {
error_page
404
=
@urlshortener
;
}
location
@urlshortener
{
# TODO!
return
404
;
proxy_pass
http://kutt.antsr.svc.cluster.local:3000
;
proxy_intercept_errors
on
;
proxy_set_header
Host
ant.sr
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-for
$remote_addr
;
error_page
404
=
@notfound
;
}
location
@notfound
{
return
404
"Sorry,
not
found!"
;
}
}
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