Final update oauth2
This commit is contained in:
parent
a82e3e597d
commit
2404abba21
@ -40,7 +40,7 @@ function update_script() {
|
||||
curl -fsSL "https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v${RELEASE}/oauth2-proxy-v${RELEASE}.linux-amd64.tar.gz" -o /opt/oauth2-proxy.tar.gz
|
||||
tar -xzf /opt/oauth2-proxy.tar.gz
|
||||
mv /opt/oauth2-proxy-v${RELEASE}.linux-amd64/oauth2-proxy /opt/oauth2-proxy
|
||||
systemctl restart oauth2-proxy
|
||||
systemctl start oauth2-proxy
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
||||
|
||||
@ -61,5 +61,4 @@ description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:4180${CL}"
|
||||
echo -e "${INFO}${YW} Now you can modify /opt/oauth2-proxy/config.toml with your needed config.${CL}"
|
||||
|
45
frontend/public/json/oauth2-proxy.json
Normal file
45
frontend/public/json/oauth2-proxy.json
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "OAuth2-Proxy",
|
||||
"slug": "oauth2-proxy",
|
||||
"categories": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"date_created": "2025-05-25",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": null,
|
||||
"documentation": "https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview",
|
||||
"website": "https://oauth2-proxy.github.io/oauth2-proxy/",
|
||||
"logo": "https://raw.githubusercontent.com/oauth2-proxy/oauth2-proxy/f82e90426a1881d36bf995f25de9b7b1db4c2564/docs/static/img/logos/OAuth2_Proxy_icon.svg",
|
||||
"config_path": "/opt/oauth2-proxy/config.toml",
|
||||
"description": "A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/oauth2-proxy.sh",
|
||||
"resources": {
|
||||
"cpu": 1,
|
||||
"ram": 512,
|
||||
"hdd": 3,
|
||||
"os": "debian",
|
||||
"version": "12"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": null,
|
||||
"password": null
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "This application includes a blank configuration file by default due to the wide range of available configuration options. We recommend referring to the official documentation for guidance: `https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview`. With this you can make your config.toml file accordingly to your needs.",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "After chaning config restart OAuth2-Proxy with: `systemctl restart oauth2-proxy`",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
@ -24,7 +24,7 @@ mkdir -p /opt/oauth2-proxy
|
||||
curl -fsSL "https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v${RELEASE}/oauth2-proxy-v${RELEASE}.linux-amd64.tar.gz" -o /opt/oauth2-proxy.tar.gz
|
||||
tar -xzf /opt/oauth2-proxy.tar.gz -C /opt
|
||||
mv /opt/oauth2-proxy-v${RELEASE}.linux-amd64/oauth2-proxy /opt/oauth2-proxy
|
||||
touch /opt/oauth2-proxy/config.cfg
|
||||
touch /opt/oauth2-proxy/config.toml
|
||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||
msg_ok "Setup OAuth2-Proxy"
|
||||
|
||||
@ -37,7 +37,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/oauth2-proxy
|
||||
ExecStart=/opt/oauth2-proxy/oauth2-proxy --config config.cfg
|
||||
ExecStart=/opt/oauth2-proxy/oauth2-proxy --config config.toml
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user