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:
docker run -p 80:80 \
-it \
--name kuadrado \
--mount type=bind,source="$(shell pwd)/public",target=/usr/share/nginx/html \
-d kuadradoimg
docker-compose up -d
start:
docker start kuadrado
run-log:
docker-compose up
build:
docker-compose up --build -d
stop:
docker stop kuadrado
docker-compose down
bash:
docker exec -it kuadrado bash
......
......@@ -3,14 +3,7 @@
"use strict";
const build_conf = {
protected_dirs: [
"assets",
"style",
"news-articles",
"game-articles",
"software-articles",
"letsencrypt",
],
protected_dirs: ["assets", "style", "news-articles", "game-articles", "software-articles"],
};
const fs = require("fs");
......
version: "3.9"
services:
web:
build: .
ports:
- "80:80"
volumes:
- ./public:/usr/share/nginx/html
web:
build: .
container_name: "kuadrado"
ports:
- "80:80"
- "443:443"
volumes:
- ./public:/usr/share/nginx/html
certbot:
image: certbot/certbot
......@@ -29,11 +29,21 @@ http {
include /etc/nginx/conf.d/*.conf;
server {
listen 80;
root /usr/share/nginx/html;
index index.html index.htm;
server_name kuadrado-software.fr www.kuadrado-software.fr;
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 {
tag: "div",
class: "page-header",
contents: [
{tag:"h1",contents:"AAA"},
{
tag: "div",
class: "big-logo page-contents-center",
......
......@@ -18,7 +18,6 @@ class HomePage {
tag: "div",
class: "page-header",
contents: [
{tag:"h1",contents:"AAA"},
{
tag: "div",
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