定制 upanupstudios/upanup_admin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

upanupstudios/upanup_admin

最新稳定版本:1.0

Composer 安装命令:

composer require upanupstudios/upanup_admin

包简介

Admin functionality and styling updates for Upanup's base state

README 文档

README

Overview

Custom module that provides admin redirect functionality for Upanup Drupal sites.

  • Package: Upanup
  • Version: 10.x-2.0
  • Drupal compatibility: ^9.0 || ^10 || ^11

Requirements

  • Drupal 10 or 11
  • DNS record pointing to the server IP or domain (e.g. name.admin.upanup.com, admin.domain.com, name.admin.domain.com)
  • Alternatively use a wildcard DNS record (e.g. *.domain.com or *.admin.domain.com)
  • SSL certificate for the domains, can also be a wildcard

Installation

  1. Enable the module: drush en upanup_admin
    • Or through Drupal admin, navigate to ** Extend ** and enable Upanup Admin
  2. Navigate to Administration > Upanup Admin > Settings to configure.
  3. Ensure DNS and SSL are configured before enabling.

Features

Admin Redirect

An event subscriber (CustomAdminRedirect) fires on every request and can redirect anonymous users to or from the admin domain. Three redirect strategies are supported, configurable via the settings form:

  • Upanup Admin — uses the name.admin.upanup.com subdomain pattern. Requires an Admin Name.
  • Admin Domain — uses the admin.domain.com subdomain pattern. Optionally accepts a Custom Admin Name to override the admin prefix (e.g. custom.domain.com).
  • Admin Subdomain — uses the name.admin.domain.com subdomain pattern. Requires an Admin Name and optionally a Custom Admin Name to override the admin prefix.

The redirect is only applied to anonymous users and targets login/logout routes (user.login, user.logout). If the upanup_auth or samlauth modules are present, login/logout routes are also included.

Configuration

Navigate to Admin > Configuration > User Interface > Upanup Admin (/admin/upanup_admin).

Setting Description
Enable admin redirect Toggles the redirect behaviour on or off.
Admin Method Selects the redirect strategy: Upanup Admin, Admin Domain, or Admin Subdomain.
Admin Name The subdomain name prefix used when Admin Method is set to Upanup Admin or Admin Subdomain (e.g. name in name.admin.upanup.com).
Custom Admin Name An optional custom subdomain segment used with Admin Domain or Admin Subdomain. Overrides the default admin segment (e.g. enter myadmin to get myadmin.domain.com or name.myadmin.domain.com). Leave blank to use the default admin.

Requires the administer upanup_admin permission.

Permissions

Permission Description
administer upanup_admin Access and save the Upanup Admin settings form.

Notes

  • Update .htaccess to redirect only root domains to www.
  • Add admin subdomains to the Shield module allowlist domains configuration.

统计信息

  • 总下载量: 111
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-03-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固