This file contains hidden or 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
| #user 'sampleuser' virtual host 'telegramapi.sample.com' configuration file | |
| server { | |
| server_name telegramapi.sample.com www.telegramapi.sample.com; | |
| ... ... ... | |
| location / { | |
| proxy_set_header Host api.telegram.org; | |
| proxy_pass https://api.telegram.org; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Server $host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains hidden or 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
| <?php | |
| /** | |
| * This script performs a full dump of a database query into | |
| * CSV format and pipes it directly to the browser. | |
| * | |
| * - YES, the browser will save the CSV file to disk | |
| * - YES, it should support large files without using massive amounts of memory | |
| * - YES, it compresses the request using GZIP to reduce download time | |
| */ |
This file contains hidden or 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
| ~# uname -a | |
| ~# lsb_release -a | |
| ~# locale-gen en_US | |
| ~# locale-gen en_US.UTF-8 | |
| ~# apt-get -y --force-yes remove ntpdate | |
| ~# apt-get -y --force-yes install ntp | |
| ~# /etc/init.d/ntp restart | |
| ~# dpkg-reconfigure tzdata |