fixed auth for blog

This commit is contained in:
2024-11-19 19:44:31 +00:00
parent aec6786be7
commit a3c9c0ffd3
5 changed files with 11 additions and 7 deletions

1
services/auth/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
data

View File

@@ -6,5 +6,6 @@ services:
environment:
- driverName=postgres
- dataSourceName=user=casdoor password=73F(+b3zW_D-4LM3fTgh host=192.168.0.101 port=5432 dbname=casdoor
volumes:
- ./data/:/files/

View File

@@ -24,7 +24,7 @@ server {
}
server {
listen localhost:7788;
listen 192.168.0.101:7788;
location / {
root /opt/blog_content/;
try_files $uri $uri/ $uri.html =404;
@@ -40,4 +40,4 @@ server {
server_name blog.maksim-pankov.ru;
listen 80;
return 404; # managed by Certbot
}
}

View File

@@ -7,9 +7,9 @@ services:
- OAUTH2_PROXY_REDIRECT_URL=https://blog.maksim-pankov.ru/oauth2/callback
- OAUTH2_PROXY_REVERSE_PROXY=true
- OAUTH2_PROXY_SKIP_PROVIDER_BUTTON=true
- OAUTH2_PROXY_UPSTREAMS=http://localhost:7788/
- OAUTH2_PROXY_UPSTREAMS=http://192.168.0.101:7788/
# - OAUTH2_PROXY_UPSTREAMS=file:///opt/blog_content/#/
- OAUTH2_PROXY_UPSTREAMS=static://200
# - OAUTH2_PROXY_UPSTREAMS=static://200
- OAUTH2_PROXY_CLIENT_ID=jigran_blog
- OAUTH2_PROXY_CLIENT_SECRET=c72ba7c0d489e020e0b5875729186ac4fb6872d7
- OAUTH2_PROXY_OIDC_ISSUER_URL=https://auth.maksim-pankov.ru
@@ -17,4 +17,6 @@ services:
- OAUTH2_PROXY_EMAIL_DOMAINS=*
- OAUTH2_PROXY_WHITELIST_DOMAINS=*.maksim-pankov.ru
ports:
- 9988:9988
- 9988:9988
extra_hosts:
- "host.docker.internal:host-gateway"

View File

@@ -50,7 +50,7 @@
"rpc-enabled": true,
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": false,
"rpc-password": "{9e928f24e0b8a01bebecd0e3ca3855cd5634a062JF/eKeW0",
"rpc-password": "{def05d3bb06111dff02ca306d9f92e5da4bc5e62EfULPoIa",
"rpc-port": 9091,
"rpc-socket-mode": "0750",
"rpc-url": "/transmission/",