filmov
tv
Настройка виртуалки, создание пользователя, установка докера, установка и настройка nginx
Показать описание
Программирование с топором черновик второй серии
Оставлю основные команды тут же:
adduser profi
usermod -aG sudo profi
su profi
sudo docker run -it -p 5001:80 -d dockerlogin/repo:tag
sudo apt install nginx
sudo nano /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
server name _;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme
}
}
Ctrl + s
sudo nginx -t
sudo nginx -s reload
Оставлю основные команды тут же:
adduser profi
usermod -aG sudo profi
su profi
sudo docker run -it -p 5001:80 -d dockerlogin/repo:tag
sudo apt install nginx
sudo nano /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
server name _;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme
}
}
Ctrl + s
sudo nginx -t
sudo nginx -s reload