Commit 700563d6 authored by Adrien BRICCHI's avatar Adrien BRICCHI
Browse files

Static resource image

parent 0a09f580
/.gradle/
gradle/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
## Considered rules from https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
\.idea/modules\.xml
\.idea/modules/*.iml
## The rest is taken from https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
.idea/modules.xml
.idea/*.iml
.idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
.DS_Store
......@@ -14,19 +14,21 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
FROM debian:stretch
RUN apt-get update
RUN apt-get install -y wget
# Build
FROM ubuntu:latest AS builder
WORKDIR /var/www/parapheur/libersign
ADD make.sh .
RUN apt-get update && apt-get install -y wget
RUN mkdir -p /var/www/parapheur/libersign
COPY make.sh .
RUN ./make.sh PROD
# Serve
FROM nginx:1.17.8-alpine
## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*
COPY --from=0 /var/www/parapheur/libersign /usr/share/nginx/html/
COPY --from=builder /var/www/parapheur/libersign/ /usr/share/nginx/html/libersign/
ADD nginx.conf /etc/nginx/
CMD ["nginx", "-g", "daemon off;"]
......@@ -4,9 +4,9 @@ LIBERSIGN_PATH=/var/www/parapheur/libersign
CHANNEL=$1
if [ "${CHANNEL}" == "PROD" ]; then
SERVER_PATH="http://libersign.adullact-projet.fr"
SERVER_PATH="https://libersign.libriciel.fr"
else
SERVER_PATH="http://l33t-k0rn.adullact-projet.fr"
SERVER_PATH="https://libersign-test.libriciel.fr"
fi
# Go to libersign folder
......
# Libersign
# Copyright (C) 2019-2020 Libriciel SCOP
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
worker_processes 1;
events { worker_connections 1024; }
http {
sendfile on;
server {
root /usr/share/nginx/html/;
index index.html;
server_name localhost;
listen 80;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment