Skip to content

Instantly share code, notes, and snippets.

@DreamerKlim
Last active September 30, 2017 16:46
Show Gist options
  • Save DreamerKlim/1b844d97b5815e9aa52e05aaf680554c to your computer and use it in GitHub Desktop.
Save DreamerKlim/1b844d97b5815e9aa52e05aaf680554c to your computer and use it in GitHub Desktop.
// Установим nginx
sudo apt install nginx
// Старт и автозапуск nginx
sudo systemctl start nginx
sudo systemctl enable nginx
// Создаем файл конфигураций
sudo nano /etc/nginx/conf.d/rslsync.conf
---------------------
server {
listen 80;
server_name ВАШ.ДОМЕН.РУ;
access_log /var/log/nginx/ВАШ.ДОМЕН.РУ.log;
location / {
proxy_pass http://127.0.0.1:8888;
}
}
----------------------
// Перезагрузка nginx
sudo systemctl reload nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment