dev: clean and 404
This commit is contained in:
parent
7b0baf20fb
commit
7423c30a36
10 changed files with 145 additions and 64 deletions
|
|
@ -18,6 +18,5 @@ EXPOSE 3306
|
|||
|
||||
# start
|
||||
CMD ["/run.sh"]
|
||||
#CMD ["ls", "-AlF", "/"]
|
||||
|
||||
HEALTHCHECK --interval=1s --timeout=10s --start-period=600s --retries=1 CMD [ "sh", "-c", "! [ -z \"$(netstat -tuln | grep :3306)\" ]" ]
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ RUN apk add curl
|
|||
RUN apk fix
|
||||
|
||||
# install nginx
|
||||
# TODO(any) installed automatically?
|
||||
#RUN apk add openssl curl ca-certificates
|
||||
RUN printf "%s%s%s%s\n" \
|
||||
"@nginx " \
|
||||
"http://nginx.org/packages/alpine/v" \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ http {
|
|||
ssl_certificate_key /cert/cert.key;
|
||||
ssl_protocols TLSv1.3;
|
||||
error_page 497 =301 /497.php;
|
||||
# TODO ssl_ciphers(any)
|
||||
|
||||
access_log /var/log/nginx/mcolonna.42.fr.access.log main;
|
||||
|
||||
|
|
@ -45,7 +44,6 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
# TODO(more) error_page 404 /404.html;
|
||||
# TODO(more) error_page 500 502 503 504 /50x.html;
|
||||
error_page 404 /404.php;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,11 +12,6 @@ RUN apk fix
|
|||
RUN addgroup -S www
|
||||
RUN adduser -D -S -G www www
|
||||
|
||||
#RUN apk add curl
|
||||
# install wordpress
|
||||
# RUN mkdir -p /www
|
||||
# RUN curl https://wordpress.org/latest.tar.gz | tar zx -C /www
|
||||
|
||||
# add config
|
||||
COPY /conf/ /etc/php83/
|
||||
COPY /conf/wwwmore/ /conf/wwwmore/
|
||||
|
|
|
|||
143
srcs/requirements/wordpress/conf/wwwmore/404.php
Normal file
143
srcs/requirements/wordpress/conf/wwwmore/404.php
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>yippee</title>
|
||||
<style>
|
||||
|
||||
* {
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
@font-face
|
||||
{
|
||||
font-family: "Varela Round";
|
||||
src: url("/VarelaRound.ttf");
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
.yippee {
|
||||
font-size: 3em;
|
||||
font-family: "Varela Round";
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@keyframes rotationoeoeoe {
|
||||
0% { transform: rotate(0); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@keyframes pulseyayaya {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.4); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
@keyframes rainbow {
|
||||
0% { color: #f00; }
|
||||
17% { color: #f00; }
|
||||
17% { color: #ff0; }
|
||||
33% { color: #ff0; }
|
||||
33% { color: #0f0; }
|
||||
50% { color: #0f0; }
|
||||
50% { color: #0ff; }
|
||||
67% { color: #0ff; }
|
||||
67% { color: #00f; }
|
||||
83% { color: #00f; }
|
||||
83% { color: #f0f; }
|
||||
100% { color: #f0f; }
|
||||
100% { color: #f00; }
|
||||
}
|
||||
|
||||
.yippee {
|
||||
animation-name: rotationoeoeoe;
|
||||
animation-duration: 1s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
.yippee > .yippeeinner {
|
||||
animation-name: pulseyayaya;
|
||||
animation-duration: .8s;
|
||||
animation-timing-function: ease-in-out;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
#one, #two, #three {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation-name: rainbow;
|
||||
animation-duration: 1s;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
#one {
|
||||
z-index: 3;
|
||||
color: #f00;
|
||||
animation-delay: .0s;
|
||||
}
|
||||
|
||||
#one > .yippee {
|
||||
animation-delay: .0s;
|
||||
}
|
||||
|
||||
#one > .yippee > .yippeeinner {
|
||||
animation-delay: .0s;
|
||||
}
|
||||
|
||||
#two {
|
||||
z-index: 2;
|
||||
color: #0f0;
|
||||
opacity: .50;
|
||||
animation-delay: .1s;
|
||||
}
|
||||
|
||||
#two > .yippee {
|
||||
animation-delay: .05s;
|
||||
}
|
||||
|
||||
#two > .yippee > .yippeeinner {
|
||||
animation-delay: .05s;
|
||||
}
|
||||
|
||||
#three {
|
||||
z-index: 1;
|
||||
color: #00f;
|
||||
opacity: .33;
|
||||
animation-delay: .2s;
|
||||
}
|
||||
|
||||
#three > .yippee {
|
||||
animation-delay: .1s;
|
||||
}
|
||||
|
||||
#three > .yippee > .yippeeinner {
|
||||
animation-delay: .1s;
|
||||
}
|
||||
|
||||
* {
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="one"><div class="yippee"><div class="yippeeinner">4 0 4</div></div></div>
|
||||
<div id="two"><div class="yippee"><div class="yippeeinner">4 0 4</div></div></div>
|
||||
<div id="three"><div class="yippee"><div class="yippeeinner">4 0 4</div></div></div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
srcs/requirements/wordpress/conf/wwwmore/VarelaRound.ttf
Normal file
BIN
srcs/requirements/wordpress/conf/wwwmore/VarelaRound.ttf
Normal file
Binary file not shown.
|
|
@ -85,7 +85,7 @@ $table_prefix = 'wp_';
|
|||
*
|
||||
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
|
||||
*/
|
||||
define( 'WP_DEBUG', true ); # TODO(debug)
|
||||
define( 'WP_DEBUG', false );
|
||||
|
||||
/* Add any custom values between this line and the "stop editing" line. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue