Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ceb7f51b
Unverified
Commit
ceb7f51b
authored
Nov 11, 2019
by
Arve Knudsen
Committed by
GitHub
Nov 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Devenv: Add nginx_proxy_mac/nginx_login_only.conf (#20310)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
ff47238b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
devenv/docker/blocks/nginx_proxy_mac/nginx_login_only.conf
+42
-0
No files found.
devenv/docker/blocks/nginx_proxy_mac/nginx_login_only.conf
0 → 100644
View file @
ceb7f51b
events
{
worker_connections
1024
; }
http
{
sendfile
on
;
proxy_redirect
off
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Host
$
server_name
;
server
{
listen
10080
;
location
/
grafana
/ {
################################################################
# Enable these settings to test with basic auth and an auth proxy header
# the htpasswd file contains an admin user with password admin and
# user1: grafana and user2: grafana
################################################################
################################################################
# To use the auth proxy header, set the following in custom.ini:
# [auth.proxy]
# enabled = true
# header_name = X-WEBAUTH-USER
# header_property = username
################################################################
location
/
grafana
/
login
{
auth_basic
"Restricted Content"
;
auth_basic_user_file
/
etc
/
nginx
/
htpasswd
;
proxy_set_header
X
-
WEBAUTH
-
USER
$
remote_user
;
proxy_pass
http
://
host
.
docker
.
internal
:
3000
/
login
;
}
proxy_set_header
Authorization
""
;
proxy_pass
http
://
host
.
docker
.
internal
:
3000
/;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment