mirror of
https://github.com/fspc/workstand.git
synced 2026-09-16 08:31:38 -04:00
One day the docker stuff will work.
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
FROM nginx:alpine
|
||||
FROM nginx
|
||||
RUN echo 'deb http://ftp.debian.org/debian jessie-backports main' | tee /etc/apt/sources.list.d/backports.list
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y python-certbot -t jessie-backports
|
||||
COPY conf/* /etc/nginx/conf.d/
|
||||
|
||||
@@ -33,6 +33,10 @@ server {
|
||||
try_files $uri @proxy_to_app;
|
||||
}
|
||||
|
||||
location /static {
|
||||
root /code/static;
|
||||
}
|
||||
|
||||
location @proxy_to_app {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# enable this if and only if you use HTTPS
|
||||
|
||||
Reference in New Issue
Block a user