Tässäpä kirjattuna komentoja eri ohjelmiin merkityksineen.
npm initnpm install selenium-webdriver --save-devnpm install mocha --save-dev"scripts": {
"testall": "npx mocha \"[projektikansion testikansio]/**/test_*.js\"",
"testone": "npx mocha"
},npm run testallnpm run testone [testikansio/testi]npm runserver {
listen 80;
listen [::]:80;
root /var/www/html/[domainin nimi];
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name [domainin nimi];
location / {
try_files $uri $uri/ /index.php?url=$uri&$args;
}
# pass PHP scripts to FastCGI server
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
location ~ /\.ht {
deny all;
}
}sudo ln -s /etc/nginx/sites-available/[tiedostosi nimi] /etc/nginx/sites-enabledsudo nginx -tsudo certbotssh -i [avaintiedosto] [tietokone]chmod 400 [avaintiedosto]sudo apt updatesudo apt install nginxsudo apt-get install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo add-apt-repository ppa:ondrej/nginxsudo apt-get updatesudo apt-get install php8.4-common php8.4-cli php8.4-opcache php8.4-mysql php8.4-xml php8.4-curl php8.4-zip php8.4-mbstring php8.4-gd php8.4-intl php8.4-bcmath php8.4-fpmsudo apt install mysql-serversudo mysql_secure_installationsudo mysqlCREATE USER '[käyttäjänimi]'@'%' IDENTIFIED WITH mysql_native_password BY '[salasana]';GRANT ALL ON *.* TO '[käyttäjänimi]'@'%';sudo python3 -m venv /opt/certbot/sudo /opt/certbot/bin/pip install --upgrade pipsudo /opt/certbot/bin/pip install certbot certbot-nginxsudo ln -s /opt/certbot/bin/certbot /usr/bin/certbotsudo certbot