From 5945d1d2f4fc8ed622f4fc97cd827a2be67d2cb2 Mon Sep 17 00:00:00 2001 From: Florian THIERRY Date: Sun, 22 May 2022 13:00:28 +0200 Subject: [PATCH] Add js conf. --- nginx.conf | 2 -- www/app.html | 3 +++ www/app.js | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 www/app.js diff --git a/nginx.conf b/nginx.conf index bb7b463..492e7fb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -23,8 +23,6 @@ http { listen 80; server_name my.app; - root /app; - location / { root /usr/share/nginx/html; try_files $uri $uri/ =404; diff --git a/www/app.html b/www/app.html index d511639..b3137b0 100644 --- a/www/app.html +++ b/www/app.html @@ -5,5 +5,8 @@

Application HTML

+ +
+ \ No newline at end of file diff --git a/www/app.js b/www/app.js new file mode 100644 index 0000000..52c1322 --- /dev/null +++ b/www/app.js @@ -0,0 +1,7 @@ +function helloFromJS() { + document.getElementById('app-js').innerHTML = 'Application JS'; +} + +window.onload = () => { + helloFromJS(); +} \ No newline at end of file