Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 9fcf9fb8 authored by peter_rabbit's avatar peter_rabbit
Browse files

wip:https

parent 434c2dde
No related branches found
No related tags found
No related merge requests found
build:
docker build -t kuadradoimg .
run: run:
docker run -p 80:80 \ docker-compose up -d
-it \
--name kuadrado \
--mount type=bind,source="$(shell pwd)/public",target=/usr/share/nginx/html \
-d kuadradoimg
start: run-log:
docker start kuadrado docker-compose up
build:
docker-compose up --build -d
stop: stop:
docker stop kuadrado docker-compose down
bash: bash:
docker exec -it kuadrado bash docker exec -it kuadrado bash
......
...@@ -3,14 +3,7 @@ ...@@ -3,14 +3,7 @@
"use strict"; "use strict";
const build_conf = { const build_conf = {
protected_dirs: [ protected_dirs: ["assets", "style", "news-articles", "game-articles", "software-articles"],
"assets",
"style",
"news-articles",
"game-articles",
"software-articles",
"letsencrypt",
],
}; };
const fs = require("fs"); const fs = require("fs");
......
version: "3.9" version: "3.9"
services: services:
web: web:
build: . build: .
ports: container_name: "kuadrado"
- "80:80" ports:
volumes: - "80:80"
- ./public:/usr/share/nginx/html - "443:443"
volumes:
- ./public:/usr/share/nginx/html
certbot:
image: certbot/certbot
...@@ -29,11 +29,21 @@ http { ...@@ -29,11 +29,21 @@ http {
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
server { server {
listen 80;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
server_name kuadrado-software.fr www.kuadrado-software.fr; server_name kuadrado-software.fr www.kuadrado-software.fr;
location / { location / {
add_header "Access-Control-Allow-Origin" "*"; return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name kuadrado-software.fr www.kuadrado-software.fr;
index index.html index.htm;
location / {
proxy_pass http://kuadrado-software.fr; #for demo purposes
} }
} }
} }
......
letsencrypt @ adb7e5e6
Subproject commit adb7e5e62f4c96be678c5af3e55a82ddcc717590
...@@ -289,7 +289,6 @@ class HomePage { ...@@ -289,7 +289,6 @@ class HomePage {
tag: "div", tag: "div",
class: "page-header", class: "page-header",
contents: [ contents: [
{tag:"h1",contents:"AAA"},
{ {
tag: "div", tag: "div",
class: "big-logo page-contents-center", class: "big-logo page-contents-center",
......
...@@ -18,7 +18,6 @@ class HomePage { ...@@ -18,7 +18,6 @@ class HomePage {
tag: "div", tag: "div",
class: "page-header", class: "page-header",
contents: [ contents: [
{tag:"h1",contents:"AAA"},
{ {
tag: "div", tag: "div",
class: "big-logo page-contents-center", class: "big-logo page-contents-center",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment