diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-19 01:46:25 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-19 01:46:25 +0800 |
commit | ac21570aa3468a316b747cfbd8241ccdfe6039b3 (patch) | |
tree | 84ee278c990f2493e475677452ab5c329e4ee6dc /templates/nginx/conf.d/root.conf.template | |
parent | 84b7a6454f3aefba3e1e96b22ac3f4710b6ce238 (diff) | |
download | crupest-ac21570aa3468a316b747cfbd8241ccdfe6039b3.tar.gz crupest-ac21570aa3468a316b747cfbd8241ccdfe6039b3.tar.bz2 crupest-ac21570aa3468a316b747cfbd8241ccdfe6039b3.zip |
feat(2fa): move to root domain subpath.
Diffstat (limited to 'templates/nginx/conf.d/root.conf.template')
-rw-r--r-- | templates/nginx/conf.d/root.conf.template | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/nginx/conf.d/root.conf.template b/templates/nginx/conf.d/root.conf.template index a0b08f8..b5f12ef 100644 --- a/templates/nginx/conf.d/root.conf.template +++ b/templates/nginx/conf.d/root.conf.template @@ -6,6 +6,11 @@ server { root /srv/www; } + location /2fa/ { + include common/proxy-common; + proxy_pass http://2fauth:8000/; + } + location /_$CRUPEST_V2RAY_PATH { if ($http_upgrade != "websocket") { return 404; |