add nginx authentication to docker container

Annullerat Publicerat 1 år sedan Betalades vid leverans
Annullerat Betalades vid leverans

I have the following Dockerfile:

FROM node:alpine

WORKDIR /usr/app

RUN npm init -f

COPY [login to view URL] .

RUN npm install http

ENTRYPOINT ["node", "[login to view URL]"]

here is the content of [login to view URL]:

const http = require('http');

[login to view URL]((request, response) => {

[login to view URL](200, {

'Content-Type': 'text/plain'

});

[login to view URL]('Hello, World!\n');

[login to view URL]();

}).listen(80);

I need the Dockerfile modified using nginx to require http authentication (basic auth) on port 80 with the given sample service above.

The estimated time to complete this project is 15 minutes and the budget is $10. An extra deadline of 2 hours will be given in case you are not able to complete within 15 minutes, but the payment will not be increased.

Nginx Docker

Projekt-id: #35411101

About the project

Distansprojekt Aktivt 1 år sedan