Skip to content

Commit

Permalink
Merge pull request #148 from daneedev/dev
Browse files Browse the repository at this point in the history
v1.10.3
  • Loading branch information
daneedev authored Mar 19, 2024
2 parents 1b26bea + c212af5 commit 8cc2037
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 117 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ DaneeCloud is website, you can upload and download your files, manage your uploa

| 🏳️ Language | Translated? | 🙋 Translator |
| ------------ | ---------- | -------------- |
| 🇨🇿 Czech | ✅ 100% | [@daneeskripter](https://github.com/daneeskripter) |
| 🇨🇿 Czech | ✅ 100% | [@daneedev](https://github.com/daneedev) |
| 🇫🇷 French | 0% | - |
| 🇩🇪 German | 0% | - |
| 🇯🇵 Japanese | ✅ 100% | [@mzch](https://github.com/mzch) |
Expand Down
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = require("./config.json")
const mongoose = require("mongoose")
const passport = require("passport")
const flash = require("express-flash")
const session = require("cookie-session")
const session = require("express-session")
const methodOverride = require("method-override")
const logger = require("./handlers/logger")
const updater = require("./handlers/updater")
Expand All @@ -25,15 +25,16 @@ const domain = config.cloudurl.split("//")
const initializePassport = require("./handlers/passportconfig")
initializePassport(passport)
app.use(flash())
let https;
if (config.useHTTPS) https = true
else https = false
app.use(session({
name: "logincookie",
keys: [process.env.SESSION_SECRET],
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: false,
cookie: {
secure: true,
secure: https,
httpOnly: true,
domain: domain[1],
maxAge: 86400000
}
}))
Expand Down
212 changes: 104 additions & 108 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8cc2037

Please sign in to comment.