Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libriciel
Signature
libersign
Commits
700563d6
Commit
700563d6
authored
Jul 28, 2020
by
Adrien BRICCHI
Browse files
Static resource image
parent
0a09f580
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
700563d6
/.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
Dockerfile
View file @
700563d6
...
...
@@ -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;"]
make.sh
View file @
700563d6
...
...
@@ -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
=
"http
s
://libersign.
libriciel
.fr"
else
SERVER_PATH
=
"http://l
33t-k0rn.adullact-projet
.fr"
SERVER_PATH
=
"http
s
://l
ibersign-test.libriciel
.fr"
fi
# Go to libersign folder
...
...
nginx.conf
0 → 100644
View file @
700563d6
# 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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment