Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
54936267
Commit
54936267
authored
May 22, 2018
by
Xavier Guimard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get username in LLNG logs (#595)
parent
e90b3c34
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
_example/etc/manager-nginx.conf
_example/etc/manager-nginx.conf
+2
-0
_example/etc/nginx-lmlog.conf
_example/etc/nginx-lmlog.conf
+3
-0
_example/etc/portal-nginx.conf
_example/etc/portal-nginx.conf
+2
-0
No files found.
_example/etc/manager-nginx.conf
View file @
54936267
...
...
@@ -2,6 +2,8 @@ server {
listen
__
PORT__
;
server_name
manager
.
__
DNSDOMAIN__
;
root
__
MANAGERSITEDIR__
;
# Use "lm_app" format to get username in nginx.log (see nginx-lmlog.conf)
#access_log /var/log/nginx/portal.log lm_app;
if
($
uri
!~ ^/(.*\.
psgi
|
static
|
doc
|
fr
-
doc
|
lib
|
javascript
|
favicon
)) {
rewrite
^/(.*)$ /
manager
.
psgi
/$
1
break
;
...
...
_example/etc/nginx-lmlog.conf
View file @
54936267
log_format
lm_combined
'$remote_addr - $lmremote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"'
;
log_format
lm_app
'$remote_addr - $upstream_http_lm_remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"'
;
_example/etc/portal-nginx.conf
View file @
54936267
...
...
@@ -2,6 +2,8 @@ server {
listen
__
PORT__
;
server_name
auth
.
__
DNSDOMAIN__
;
root
__
PORTALSITEDIR__
;
# Use "lm_app" format to get username in nginx.log (see nginx-lmlog.conf)
#access_log /var/log/nginx/portal.log lm_app;
if
($
uri
!~ ^/((
static
|
javascript
|
favicon
).*|.*\.
psgi
)) {
rewrite
^/(.*)$ /
index
.
psgi
/$
1
break
;
...
...
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