mc-cms-namelessmc/nginx.example
tadhgboyle ab6a0331cb
Add user sessions page (#3278)
* Save device information on login

* Users sessions page

* PR comments & device detection improvements

* Fix code-style

* Store IP in session & display on the user sessions page

* Don't show session hash, add last seen

* Fix last seen translation, ...

* Unnecesary Output::getClean() - Partydragen

* Apparently I did use admin/sessions language term

* Show location of ip

* Update custom/panel_templates/Default/core/users_sessions.tpl

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update custom/languages/en_UK.json

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/pages/panel/users_sessions.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* Update modules/Core/pages/panel/users_sessions.php

Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>

* use country the second time

* wip

* wip usercp sessions view

* wip

* wip - show ip to user

* wip

* wip

* chore: fix build issues

* feat: add token expiry to sessions table and increase default expiry to 1 month

* feat: prevent access to geoip database

* feat: correct migrations for user sessions columns

* feat: add missing localisation terms to sessions page

* chore: purify agent info

---------

Co-authored-by: Supercrafter100 <58982133+supercrafter100@users.noreply.github.com>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-10-17 23:21:27 -07:00

24 lines
628 B
Text

# The following are EXAMPLE location blocks for an NGINX config, with support for Nameless v2's friendly URLs
# You will need to modify your own NGINX config location blocks accordingly
# This example config will NOT work as-is.
# With thanks to @Pugabyte, @Zethrus and KentuckyFriedData
# Friendly URL support
location / {
try_files $uri $uri/ /index.php?route=$uri&$args;
}
# Deny access to some file types and directories
location ~ \.(tpl|cache|htaccess|mmdb|log)$ {
return 403;
}
location ^~ /node_modules/ {
return 403;
}
location ^~ /scripts/ {
return 403;
}
add_header X-Frame-Options "SAMEORIGIN";