mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-09-30 03:31:27 +02:00
Migrate to oauth2-proxy/oauth2-proxy
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
## OAuth2 Proxy Config File
|
||||
## https://github.com/pusher/oauth2_proxy
|
||||
## https://github.com/oauth2-proxy/oauth2-proxy
|
||||
|
||||
## <addr>:<port> to listen on for HTTP/HTTPS clients
|
||||
# http_address = "127.0.0.1:4180"
|
||||
@@ -1,10 +1,10 @@
|
||||
# Systemd service file for oauth2_proxy daemon
|
||||
# Systemd service file for oauth2-proxy daemon
|
||||
#
|
||||
# Date: Feb 9, 2016
|
||||
# Author: Srdjan Grubor <sgnn7@sgnn7.org>
|
||||
|
||||
[Unit]
|
||||
Description=oauth2_proxy daemon service
|
||||
Description=oauth2-proxy daemon service
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
@@ -12,7 +12,7 @@ After=syslog.target network.target
|
||||
User=www-data
|
||||
Group=www-data
|
||||
|
||||
ExecStart=/usr/local/bin/oauth2_proxy -config=/etc/oauth2_proxy.cfg
|
||||
ExecStart=/usr/local/bin/oauth2-proxy -config=/etc/oauth2-proxy.cfg
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
KillMode=process
|
||||
@@ -1,12 +1,12 @@
|
||||
#
|
||||
# Autocompletion for oauth2_proxy
|
||||
# Autocompletion for oauth2-proxy
|
||||
#
|
||||
# To install this, copy/move this file to /etc/bash.completion.d/
|
||||
# or add a line to your ~/.bashrc | ~/.bash_profile that says ". /path/to/oauth2_proxy/contrib/oauth2_proxy_autocomplete.sh"
|
||||
# or add a line to your ~/.bashrc | ~/.bash_profile that says ". /path/to/oauth2-proxy/contrib/oauth2-proxy_autocomplete.sh"
|
||||
#
|
||||
|
||||
_oauth2_proxy() {
|
||||
_oauth2_proxy_commands=$(oauth2_proxy -h 2>&1 | sed -n '/^\s*-/s/ \+/ /gp' | awk '{print $1}' | tr '\n' ' ')
|
||||
_oauth2_proxy_commands=$(oauth2-proxy -h 2>&1 | sed -n '/^\s*-/s/ \+/ /gp' | awk '{print $1}' | tr '\n' ' ')
|
||||
local cur prev
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
@@ -27,4 +27,4 @@ _oauth2_proxy() {
|
||||
COMPREPLY=( $(compgen -W "${_oauth2_proxy_commands}" -- ${cur}) )
|
||||
return 0;
|
||||
}
|
||||
complete -F _oauth2_proxy oauth2_proxy
|
||||
complete -F _oauth2_proxy oauth2-proxy
|
||||
Reference in New Issue
Block a user