Skip to content

Instantly share code, notes, and snippets.

View TornadoRadon's full-sized avatar
🤟
♪ busy ♫

Shakhzod Shukrulloev TornadoRadon

🤟
♪ busy ♫
View GitHub Profile
@TornadoRadon
TornadoRadon / default-nginx.conf
Created January 17, 2024 09:59 — forked from vladkras/default.conf
NGINX redirect to app store and google play based on user agent
location = /gotoapp {
if ($http_user_agent ~* "iphone|ipod|ipad|appletv") {
return 301 https://www.apple.com/lae/ios/app-store/;
}
if ($http_user_agent ~* "android") {
return 301 https://play.google.com/store;
}
if ($http_user_agent ~* "Windows") {
return 301 https://www.microsoft.com/store/apps?rtc=1;