Skip to content

Commit dae5b7b

Browse files
author
Itay Krämer
committed
AUS-435 added links, fix css
1 parent 1d3eb83 commit dae5b7b

File tree

3 files changed

+30
-19
lines changed

3 files changed

+30
-19
lines changed

docker/nginx/nginx.conf

+24-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
server {
2-
listen 80;
3-
index index.php;
4-
error_log /var/log/nginx/error.log;
5-
access_log /var/log/nginx/access.log;
6-
error_page 404 /index.php;
7-
root /var/www/public;
8-
location ~ \.php$ {
9-
try_files $uri =404;
10-
fastcgi_pass app:9000;
11-
fastcgi_index index.php;
12-
include fastcgi_params;
13-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
14-
}
15-
location / {
16-
try_files $uri $uri/ /index.php?$query_string;
17-
gzip_static on;
1+
http {
2+
include /etc/nginx/mime.types;
3+
server {
4+
listen 80;
5+
index index.php;
6+
error_log /var/log/nginx/error.log;
7+
access_log /var/log/nginx/access.log;
8+
error_page 404 /index.php;
9+
root /var/www/public;
10+
location ~ \.php$ {
11+
try_files $uri =404;
12+
fastcgi_pass app:9000;
13+
fastcgi_index index.php;
14+
include fastcgi_params;
15+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
16+
}
17+
location / {
18+
try_files $uri $uri/ /index.php?$query_string;
19+
gzip_static on;
20+
}
21+
22+
location ~* \.css$ {
23+
add_header Content-Type text/css;
24+
}
1825
}
1926
}

src/public/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<h3 class='red'>Error</h3>
5050
<p>Didn't find the virtual host <b>$serverDomain</b>, so couldn't start the containers for it</p>
5151
<p>Virtual Hosts found instead:</p>
52-
<ul><li>" . implode("<li>", $virtualHosts) . "</ul>
52+
<ul><ul><li>" . implode("</li><li>", array_map(fn($virtualHosts) => "<a class='link' href='http://$virtualHosts' target='_blank'>$virtualHosts</a>", $virtualHosts)) . "</li></ul>
5353
</div>
5454
</body>
5555
</html>";

src/public/styles.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--grey: grey;
66
--black: rgb(15, 15, 15);
77
--lightgrey: rgb(245, 245, 245);
8-
--babypink: #F082AC;
8+
--babypink: #F082AC;
99
--white: white;
1010
}
1111

@@ -52,3 +52,7 @@ body {
5252
.button:focus {
5353
background-color: var(--babypink);
5454
}
55+
56+
.link {
57+
text-decoration: none;
58+
}

0 commit comments

Comments
 (0)