Fix Users Page crash by handling missing search params gracefully

This commit is contained in:
CycroftX
2026-02-04 23:24:01 +05:30
parent 2be7072127
commit 7ff360c2b5
2 changed files with 28 additions and 1 deletions

27
nginx_admin_config Normal file
View File

@@ -0,0 +1,27 @@
server {
server_name admin.prototype.eventifyplus.com;
root /var/www/admin.prototype.eventifyplus.com;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/admin.prototype.eventifyplus.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/admin.prototype.eventifyplus.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = admin.prototype.eventifyplus.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name admin.prototype.eventifyplus.com;
return 404; # managed by Certbot
}