🐟️  Flarum 论坛社区 多域名 Google 谷歌 OAuth 2.0 服务登录 设置
/etc/nginx/conf.d/https.conf     Nginxt 配置
server {
	listen 443 ssl http2;
	server_name www.你的域名.com bbs.你的域名.com vip.你的域名.com;
	
	ssl_certificate       cert/你的域名.com.pem;
	ssl_certificate_key   cert/你的域名.com.key;
	ssl_session_timeout 5m;
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:!aNULL:!MD5:!RC4:!DHE;
	ssl_prefer_server_ciphers on;
	root /var/www/flarum/public;
	client_max_body_size 8m;
	client_body_buffer_size 128k;
	index index.html index.php;
	include  /var/www/flarum/.nginx.conf;
	location ~ .*\.php(\/.*)*$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php8.2-fpm.sock;
	}
}
/var/www/flarum/config.php 中 url 要改动一下
  "url" => "https://" . \Illuminate\Support\Arr::get($_SERVER, 'HTTP_HOST', '你的域名'),
现在多域名跨域成功,但是还有个问题 github 认证登录没支持多域名
- google  OAuth 2.0 客户端 ID 支持添加多域名,已经测试成功
