Created
April 23, 2021 02:06
-
-
Save castironclay/77e6bbec58862909df541f1d727bdd25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set viewport cookie with js | |
<script type="text/javascript"> | |
document.cookie = 'viewport=' + screen.width; | |
</script> | |
# Nginx location | |
location / { | |
# Proxy only Iphone X | |
if ($cookie_viewport ~ "375") { | |
proxy_pass 127.0.0.1:8443; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment