-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
81 lines (67 loc) · 2.78 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module" src="/sofi/js/script.js"></script>
<link rel="stylesheet" href="/sofi/css/estil.css">
<nav></nav>
<header>
<h1>ASIX - M8 Serveis de xarxa i internet - UF2</h1>
<abstract>
</abstract>
</header>
<section>
<h2>NGINX server</h2>
<ul>
<li><a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#server">server</a></li>
<li><a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#root">root</a></li>
<li><a href="https://nginx.org/en/docs/http/ngx_http_index_module.html#index">index</a></li>
<li><a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#server_name">server_name</a></li>
<li><a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#listen">listen</a></li>
<li><a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#location">location</a></li>
<li><a href="https://nginx.org/en/docs/http/configuring_https_servers.html">ssl</a>
<shell>
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/site.key -out /etc/ssl/certs/site.pem
</shell>
</li>
<li><a href="http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite">rewrite</a></li>
<li><a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass">proxy_pass</a></li>
<li>
<a href="https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_pass">fastcgi_pass</a>
</li>
<li>
<a href="https://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream">upstream</a>
</li>
</ul>
</section>
<section>
<h2>MySQL</h2>
<p>Instal·lació</p>
<shell>
wget https://repo.mysql.com//mysql-apt-config_0.8.18-1_all.deb
apt install -y ./mysql-apt-config_0.8.18-1_all.deb
apt update
apt install mysql-server
</shell>
</section>
<section>
<h2>Docker</h2>
<p>Instal·lació</p>
<ul>
<li>
<p>docker</p>
<host>root@server</host>
<shell>
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
</shell>
</li>
<li>
<p>docker-compose</p>
<host>root@server</host>
<shell>
curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
</shell>
</li>
</ul>
<h2>docker-compose reference</h2>
<a href="https://docs.docker.com/compose/compose-file/compose-file-v3/">compose-file-v3</a>
</section>